Problem using s.strip() to remove leading whitespace in .csv file

Guillaume Chorn guillaumechorn at gmail.com
Wed Feb 29 10:05:34 CET 2012


Thanks, the suggestion

print name.decode("utf-8").strip()

worked like a charm.  When I did the print repr(name) I got exactly what
you predicted.  I'm not yet sure what all of this means, but I'm going to
read this <http://docs.python.org/howto/unicode.html> in the hopes of
finding out.  Anyway thanks again for the help!


cheers,
Guillaume
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120229/b5af4548/attachment.html>


More information about the Python-list mailing list