Re: [python-win32] Unicode trouble

2005-12-02 Thread Tim Golden
[Øyvind] > I am trying to use the search and replace-function in MS Word. (Office > 2003, XP and Activestate Python 2.3). It works great until I use > non-english letters. > [... ] >>> objSelection.Find.Execute(en, False, True, False, False, True, True, 1, True, to, 2, False, False, False, False)

[python-win32] Unicode trouble

2005-12-01 Thread Øyvind
Hello. I am trying to use the search and replace-function in MS Word. (Office 2003, XP and Activestate Python 2.3). It works great until I use non-english letters. >>> from win32com.client import Dispatch >>> objWord = Dispatch("Word.Application") >>> objDoc = objWord.Documents.Open('c:/foo.doc'