[python-win32] UnicodeEncodingError when print a doc file
Tim Roberts
timr at probo.com
Thu Jun 16 03:25:50 CEST 2011
cool_go_blue wrote:
> THanks. After replying to your email, I thought about what you wrote,
> just like what you said in the following email. So, for a normal text
> file, just use open to read the file. There is no need to use the way
> to open a word document via win32com to read a text file. Will
> win32com consume more time and memory to read a text file than the
> general input stream?
>
It's not win32com that is the issue. Win32com is merely the gateway you
are using to run Microsoft Word. And yes, Microsoft Word consumes a
HELL of a lot more time and memory than reading a file using Python I/O.
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the python-win32
mailing list