[Tutor] why is unicode converted file double spaced?
Pirritano, Matthew
MPirritano at ochca.com
Tue Apr 7 18:52:54 CEST 2009
So Kent's syntax worked to convert my Unicode file to plain text. But
now my data is double space. How can I fix this. Here is the code I'm
using.
import codecs
inp = codecs.open('g:\\data\\amm\\text files\\test20090320.txt', 'r',
'utf-16')
outp = open('g:\\data\\amm\\text files\\new_text_file.txt', 'w')
outp.writelines(inp)
inp.close()
outp.close()
Thanks so much for your help!
matt
Matthew Pirritano, Ph.D.
Research Analyst IV
Medical Services Initiative (MSI)
Orange County Health Care Agency
(714) 568-5648
More information about the Tutor
mailing list