How to waste computer memory?

Marko Rauhamaa marko at pacujo.net
Sat Mar 19 12:12:31 EDT 2016


Steven D'Aprano <steve at pearwood.info>:

> On Sun, 20 Mar 2016 02:02 am, Marko Rauhamaa wrote:
>> Yes, but UTF-16 produces 16-bit values that are outside Unicode. 
>
> Show me.
>
> Before you answer, if your answer is "surrogate pairs", that is
> incorrect. Surrogate pairs is how UTF-16 encodes astral characters.

UTF-16 inputs a Unicode stream and produces a stream of 16-bit numbers.
Thus, the output of UTF-16 is not Unicode.


Marko



More information about the Python-list mailing list