> docString = self.wdApp.Documents[0].Content > return str(docString).decode('latin-1')
i've been experimenting with Win32 COM client stuff myself lately, having added a section for it in the upcoming 2nd ed. of Core Python. i haven't tried what you're doing yet though, but i have seen code which uses doc.Content.Text. have you tried that yet? also, i'm assuming you know that Latin-1 is the correct Unicode decoding for the file you're looking at? and as bob has mentioned, do post the instantiation, sample file, and output, correct or erroneous. cheers, -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Core Python Programming", Prentice Hall, (c)2007,2001 http://corepython.com wesley.j.chun :: wescpy-at-gmail.com python training and technical consulting cyberweb.consulting : silicon valley, ca http://cyberwebconsulting.com _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor