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