[Tutor] unicode to plain text conversion

Pirritano, Matthew MPirritano at ochca.com
Tue Apr 7 01:43:42 CEST 2009

Previously I was able to convert just by using:

Type Unicode_filename.txt > new_text_file.txt

That's it. 

Matthew Pirritano, Ph.D.
Research Analyst IV
Medical Services Initiative (MSI)
Orange County Health Care Agency
(714) 568-5648

-----Original Message-----
From: wesley chun [mailto:wescpy at gmail.com] 
Sent: Monday, April 06, 2009 4:40 PM
To: Pirritano, Matthew
Cc: Python Tutor
Subject: Re: [Tutor] unicode to plain text conversion

> I am a total newbie. I have a very large file > 4GB that I need to
> convert from Unicode to plain text. I used to just use dos when the
> was < 4GB but it no longer seems to work. Can anyone point me to some
> python code that might perform this function?

can you elaborate on your conversion technique when you "used to just
use dos" when the file was at an appropriate size? also let us know
what encodings are being used during your conversion too. code
snippets would be great, as well as current errors/exceptions that
you're now getting because of the file sizes.

-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
"Python Fundamentals", Prentice Hall, (c)2009

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca

More information about the Tutor mailing list