[python-win32] from MsWord to txt problem
ilflaminio@virgilio.it
ilflaminio@virgilio.it
Tue, 11 Feb 2003 18:34:41 +0100
Hi all,
I have done a simple python script that reads e Ms Word Document, and loo=
ping
throw the paragraphs, save the text in a text file:
...
f=3Dopen('c:\\ff.txt','w')
for x in mydoc.Paragraphs:
f.write(x.Range.Text.encode("latin1", "replace"))
...
The problem is that in txt files I have the character ? instead of '. Wel=
l,
if I save the file as .txt with msWord menu, I have no problem, so: there=
is a better correct encoding than latin1 for me? (I am italian, and I hav=
e
office XP on win2kpro, win32all build150 for python 2.2)
Thanks for your help