reading character in word
s.thuriez at quantaflow.com
Tue Dec 4 18:59:22 CET 2001
Maybe have you encountered my problem : I do not manage to read
accentuated characters such as éèà ... from a microsoft word
application using win32com.client.
Here is the programm that I used :
from win32com.client import constants, Dispatch
for numero_caractere in range (1,int(nombre_caracteres)+1):
print("cannot read character")
Everything is fine as soon as I do not use characters with coma accent
such as é à è in the document...
I also tried on my PC to do :
test_input=raw_input("entrer phrase avec accents : ")
for char in test_input:
after enterring word using the éàè..there is no problem printing the
correct letters (for exemple été).
There maybe some option in Word that I should set ??
I hope that someone will have some leads ...
More information about the Python-list