[Tutor] why is unicode converted file double spaced?

Pirritano, Matthew MPirritano at ochca.com
Tue Apr 7 20:59:54 CEST 2009

I did get an error...


Traceback (most recent call last):

  File "C:\Projects\unicode_convert.py", line 8, in <module>


UnicodeEncodeError: 'ascii' codec can't encode characters in position
640-641: ordinal not in range(128)



Should I be worried about this. And where does this message indicate
that the error is. And what is the error?





Matthew Pirritano, Ph.D.

Research Analyst IV

Medical Services Initiative (MSI)

Orange County Health Care Agency

(714) 568-5648


From: tutor-bounces+mpirritano=ochca.com at python.org
[mailto:tutor-bounces+mpirritano=ochca.com at python.org] On Behalf Of Marc
Sent: Tuesday, April 07, 2009 11:05 AM
To: tutor at python.org
Subject: Re: [Tutor] why is unicode converted file double spaced?


On Tue, Apr 7, 2009 at 10:57 AM, Pirritano, Matthew
<MPirritano at ochca.com> wrote:

Excellent! Thanks Marc, Kent, and everyone. Marc your code worked. Now
to see if it will run on the full 4.5 GB file! : )

Glad to help - but you should definitely take Kent's advice and replace
my strip() with rstrip().  Good luck!


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090407/6a6bc0f5/attachment.htm>

More information about the Tutor mailing list