[Top][All Lists]

[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..


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.)



Make it simple, as simple as possible but no simpler.
                                – Albert Einstein

reply via email to

[Prev in Thread] Current Thread [Next in Thread]