help-gnu-emacs
[Top][All Lists]
Advanced

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




reply via email to

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