[Python-Dev] Bytes path support
Nick Coghlan
ncoghlan at gmail.com
Thu Aug 21 16:13:37 CEST 2014
On 22 August 2014 00:12, Nick Coghlan <ncoghlan at gmail.com> wrote:
> On 21 August 2014 23:58, Marko Rauhamaa <marko at pacujo.net> wrote:
>>
>> My point is that the poor programmer cannot ignore the possibility of
>> "funny" character sets. If Python tried to protect the programmer from
>> that possibility, the result might be even more intractable: how to act
>> on a file with an non-UTF-8 filename if you are unable to express it as
>> a text string?
>
> That's what the "surrogateescape" codec is for
Oops, that should say "codec error handled" (I got it right later in the post).
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
More information about the Python-Dev
mailing list