Re: Word 2003 SaveAs wdFormatDOSText bug by Klaus
Klaus
Fri Apr 22 17:24:31 CDT 2005
Hi cp,
Looks like a bug in the text converter to me, if you choose "US ASCII" =
as the text filter.
Don't know which code page that is, but all US code pages I checked have =
^255 for the non-breaking space.
Can you use "OEM USA" instead? it doesn't have that problem, and =
converts the non-breaking space properly into ^255.
Or if you really don't mind to get rid of the non-breaking spaces, you =
could search replace them (^s in "Find what") with spaces before saving. =
Regards,
Klaus
"cp" <cp@notrealdotcom> wrote:
> Klaus,
>=20
> Well, I may have spoken too soon. Now we get ? wherever a =
non-breaking=20
> space was, whereas in previous versions of Word we got a space. I =
posted=20
> another thread, Saveas wdFormatText problem (Word 2003), with more =
detail to=20
> the microsoft.public.word.conversions group to see if anyone has a=20
> workaround.
>=20
> Thanks again,
> -c
>=20
>=20
> "Klaus Linke" <info@fotosatz-kaufmann.de> wrote in message=20
> news:uAUqaSfRFHA.1528@TK2MSFTNGP09.phx.gbl...
> "cp" <cp@notrealdotcom> wrote:
> > I added the AllowSubstitutions=3DTRUE parameter to the SaveAs method =
and it
> > converted or removed characters like non-breaking space that were =
causing
> > problems. That should correct our problem.
>=20
> The non-breaking space was available in the DOS code pages I remember =
(at=20
> &xFF/255). I hate it when Word's export filters remove or change stuff =
> uncontrollably, but it seems it helped you here ;-)
>=20
> > To determine that Word was using FileFormat=3D100, I just recorded a =
macro
> > doing a saveas and that's what it put in the Macro.
>=20
> I didn't get that, but Word probably chooses a sensible code page from =
your=20
> Windows regional/language settings or the like.
>=20
> Regards,
> Klaus=20
>=20
>