[Python-Dev] Bytes path support

Chris Angelico rosuav at gmail.com
Sat Aug 23 00:28:09 CEST 2014

On Sat, Aug 23, 2014 at 8:26 AM, Oleg Broytman <phd at phdru.name> wrote:
> On Sat, Aug 23, 2014 at 07:04:20AM +1000, Chris Angelico <rosuav at gmail.com> wrote:
>> On Sat, Aug 23, 2014 at 6:17 AM, Glenn Linderman <v+python at g.nevcal.com> wrote:
>> > "cp1251 of utf-8 encoding" is non-sensical. Either it is cp1251 or it is
>> > utf-8, but it is not both. Maybe you meant "or" instead of "of".
>> I'd assume "or" meant there, rather than "of", it's a common typo.
>> Not sure why 1251, specifically
>    This is the encoding of Russian Windows. Files and emails in Russia
> are mostly in cp1251 encoding; something like 60-70%, I think. The
> second popular encoding is cp866 (Russian DOS); it's used by Windows as
> OEM encoding.

Yeah, that makes sense. In any case, you pick one "most likely" 8-bit
encoding and go with it.


More information about the Python-Dev mailing list