[Tutor] unicode to plain text conversion
MPirritano at ochca.com
Tue Apr 7 16:44:42 CEST 2009
I am using run>cmd in windows xp professional. The type command no
longer seems to work on this file now that it exceeds 4GB. Only about
63000 lines are converted out of the 2 million plus.
How can I find out the type of coding that was used to create this file?
Is there a way to do this other than just asking the person who created
it? That is possible, but I was just curious.
Matthew Pirritano, Ph.D.
Research Analyst IV
Medical Services Initiative (MSI)
Orange County Health Care Agency
From: tutor-bounces+mpirritano=ochca.com at python.org
[mailto:tutor-bounces+mpirritano=ochca.com at python.org] On Behalf Of Alan
Sent: Tuesday, April 07, 2009 1:42 AM
To: tutor at python.org
Subject: Re: [Tutor] unicode to plain text conversion
"Pirritano, Matthew" <MPirritano at ochca.com> wrote
> 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?
When you say "DOS" what exactly do you mean?
Are you really running an old DOS operating system or are you starting
a DOS box within a Windows variant? If the latter and you are using
COMMAND to start the session you will hit the 4GB limit but if you
use CMD (under Win 2000/XP/Vista) I think it should work as before.
(Although MS may have been too clever for you and updated the type
command to work with unicode!)
Worth a try...
Tutor maillist - Tutor at python.org
More information about the Tutor