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/2000-September/009665.html below:

[Python-Dev] codecs question

[Python-Dev] codecs question [Python-Dev] codecs questionMartin von Loewis loewis@informatik.hu-berlin.de
Sat, 30 Sep 2000 11:47:01 +0200 (MET DST)
> the "unicodenames" patch (which replaces ucnhash) includes this
> functionality -- but with a little distance, I think it's better to add
> it to the unicodedata module.
>=20
> (it's included in the step 4 patch, soon to be posted to a patch
> manager near you...)

Sounds good. Is there any chance to use this in codecs, then?
I'm thinking of

>>> print u"\N{COPYRIGHT SIGN}".encode("ascii-ucn")
\N{COPYRIGHT SIGN}
>>> print u"\N{COPYRIGHT SIGN}".encode("latin-1-ucn")
=A9

Regards,
Martin

P.S. Some people will recognize this as the disguised question 'how
can I convert non-convertable characters using the XML entity
notation?'



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