Problem with PARAGRAPH SEPARATOR
Richard Brodie
R.Brodie at rl.ac.uk
Thu Mar 20 12:45:45 EDT 2008
<Dominique.Holzwarth at ch.delarue.com> wrote in message
news:mailman.2195.1206027668.9267.python-list at python.org...
> Would that mean that the string "myString" is an ascii-string or what?
It would mean it was a byte encoded string already, yes. When you try to
encode it, Python tries to coerce it to Unicode and it's equivalent to:
myString.decode('ascii').encode('iso-8859-1','ignore')
That wouldn't explain why printing it gave errors though.
More information about the Python-list
mailing list