[Python-3000] [Python-Dev] Filename as byte string in python 2.6 or 3.0?

"Martin v. Löwis" martin at v.loewis.de
Tue Sep 30 01:14:29 CEST 2008


Adam Olsen wrote:
> There's no solution except to not
> decode, and 8859-1 is the way to do that.

I think you need to elaborate that. What does ISO-8859-1 has to do
with a Python datatype in this context: which datatype, and what
algorithm on it are you specifically referring to?

When I do (in 2.x)

py> "foo".decode("iso-8859-1")
u'foo'

ISTM that 8859-1 is all about decoding, so I don't understand why
you say it is a way not to decode.

Regards,
Martin


More information about the Python-3000 mailing list