[mod_python] Reg Word Document Reading

python eager python_eager at yahoo.com
Fri Feb 24 00:44:38 EST 2006


Hi,
> >   This is my code snippet. This code will not read the characters 
in 
> > Ms Word Document. I got the below output. But if i use any *txt* 
> > format this will be display properly. Instead of txt format i am 
> > using doc format. I got error while reading. please help me to 
solve 
> > this problem
> >  
> >  
> >           req = self.request()
> >           inp = file('C:\\Python.doc','r')
> >           for line in inp:
> >              self.writeln(line)
> >           inp.close()
> >  
> > *Output :*
> > *    ÐÏࡱ*
> >  
> > regards!
> > Python eager

		
---------------------------------
Brings words and photos together (easily) with
 PhotoMail  - it's free and works with Yahoo! Mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20060223/fb6205c1/attachment.html


More information about the Mod_python mailing list