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

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to