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-July/005348.html below:

[Python-Dev] Minidom and Unicode

[Python-Dev] Minidom and Unicode [Python-Dev] Minidom and UnicodeMartin v. Loewis martin@loewis.home.cs.tu-berlin.de
Mon, 3 Jul 2000 15:08:56 +0200
> works for me:
> 
> $ export LANG=posix.utf8
[...]
> (or to put it another way, I'm not sure the repr/str fix is
> the real culprit here...)

I think it is. My understanding is that repr always returns something
printable - if possible even something that can be passed to eval. I'd
certainly expect that a minidom Node can be printed always, no matter
what the default encoding is.

Consequently, I'd prefer if the conversion uses some fixed, repr-style
encoding, eg. unicode-escape (just as repr of a unicode object does).
If it is deemed unacceptable to put this into the interpreter proper,
I'd prefer if minidom is changed to allow representation of all Nodes
on all systems.

Regards,
Martin




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