[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: python-shell-send-region uses wrong encoding?
From: |
Peter Dyballa |
Subject: |
Re: python-shell-send-region uses wrong encoding? |
Date: |
Tue, 29 Oct 2013 19:07:29 +0100 |
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.)
--
Greetings
Pete
Make it simple, as simple as possible but no simpler.
– Albert Einstein
- 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?, 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 <=
- Re: python-shell-send-region uses wrong encoding?, Ernest Adrogué, 2013/10/29
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