A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-July/016127.html below:

[Python-Dev] 2.2 Unicode questions

[Python-Dev] 2.2 Unicode questions [Python-Dev] 2.2 Unicode questionsGuido van Rossum guido@digicool.com
Thu, 19 Jul 2001 14:36:58 -0400
> > > Note that in this case, the handling of surrogates is needed
> > > to make the unicode-escape encoding roundtrip safe.
> > 
> > I don't understand what this means.  Can you give an example?
> 
> It means that the roundtrip Unicode -> encoding -> Unicode is a
> 1-1 mapping for all Unicode code points. Other examples for 
> roundtrip safe encodings are UTF-8 and UT-16.
> 
> Looking at the code, I found that the unicode-escape encoder
> does not convert Unicode surrogates to \UXXXXXXXX escapes.
> I'll fix that.

Ah.  I had missed the fact that this was a roundtrip for a specific
encoding, the unicode-escape encoding.

--Guido van Rossum (home page: http://www.python.org/~guido/)



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4