[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: python-shell-send-region uses wrong encoding?
From: |
Ernest Adrogué |
Subject: |
Re: python-shell-send-region uses wrong encoding? |
Date: |
Tue, 29 Oct 2013 21:37:13 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
29-10-2013, 19:07 (+0100); Peter Dyballa escriu:
>
> Am 29.10.2013 um 17:34 schrieb Ernest Adrogué:
>
> > in all these cases the sequence is converted into
> > 0xF6, which is the UTF-16 encoding for "ö" that Python uses internally, as
> > the output from repr() shows..
>
> No!
>
> UTF-16 is a text encoding that uses for each character in the BMP (Basic
> Multilingual Plane) 2 bytes or 16 bits – therefore the name. In UTF-16 ö
> is encoded as 0x00F6. (Above it uses twice 2 bytes, i.e. 4 bytes, which
> are distinct from UTF-32.)
I stand corrected.
- Re: python-shell-send-region uses wrong encoding?, (continued)
- Re: python-shell-send-region uses wrong encoding?, Andreas Röhler, 2013/10/29
- Re: python-shell-send-region uses wrong encoding?, Ernest Adrogué, 2013/10/29
- Re: python-shell-send-region uses wrong encoding?, Andreas Röhler, 2013/10/29
- Re: python-shell-send-region uses wrong encoding?, Peter Dyballa, 2013/10/29
- Re: python-shell-send-region uses wrong encoding?, Ernest Adrogué, 2013/10/29
- Re: python-shell-send-region uses wrong encoding?, Eli Zaretskii, 2013/10/29
- Re: python-shell-send-region uses wrong encoding?, Ernest Adrogué, 2013/10/29
- Re: python-shell-send-region uses wrong encoding?, Eli Zaretskii, 2013/10/29
- Re: python-shell-send-region uses wrong encoding?, Ernest Adrogué, 2013/10/29
- Re: python-shell-send-region uses wrong encoding?, Peter Dyballa, 2013/10/29
- Re: python-shell-send-region uses wrong encoding?,
Ernest Adrogué <=
RE: python-shell-send-region uses wrong encoding?, Drew Adams, 2013/10/29
Re: python-shell-send-region uses wrong encoding?, Stefan Monnier, 2013/10/29