[XML-SIG] illigal character encoding bug in minidom + patch

Bijan Fathi b.fathi@gmx.net
Wed, 4 Jul 2001 11:39:29 +0200 (MEST)


This is a MIME encapsulated multipart message -
please use a MIME-compliant e-mail program to open it.

Dies ist eine mehrteilige Nachricht im MIME-Format -
bitte verwenden Sie zum Lesen ein MIME-konformes Mailprogramm.

--========GMXBoundary8659994239569
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

Category: DOM/Minidom
Group: None
Status: Solved/Patch supplied
Resolution: None
Priority: 4
Submitted By: Bijan Fathi (b.fathi@gmx.net)
#Assigned to: Nobody/Anonymous (nobody)
Summary: illigal characters have not been escaped

Initial Comment:

characters with the code above 127 have been written to the xml file by
Text,
but minidom couldn't open the xml file because it contained illigal
characters.
(it was not represented as well formed in ms ie as well)

the supplied patch escapes all characters above 127 (including unicode) in
ordinary 
hex character reference notation (&#xnnnn;)

of course this only the representaion in the xml file, after loading the
file the data is
well represented as unicode or 8-bit character

python 2.0
pyxml 0.6.5

I would be thankful if you would supply this patch to minidom.py

-- 

Bijan Fathi  <b.fathi@gmx.net>

GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

GMX Tipp:

Machen Sie Ihr Hobby zu Geld bei unserem Partner 1&1!
http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a
--========GMXBoundary8659994239569
Content-Type: text/plain; name="charenc-bug.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="charenc-bug.patch"

MjY4YTI2OSwyNzMKPiAgICAgZGF0YXRtcCA9IGRhdGEKPiAgICAgZGF0YSA9ICIiCj4gICAgIGZv
ciBpIGluIGRhdGF0bXA6Cj4gICAgICAgICBpZiBvcmQoaSkgPiAxMjIgOiAgZGF0YSA9IGRhdGEg
KyAiJiN4JTA0eDsiICUgb3JkKGkpCQo+ICAgICAgICAgZWxzZSA6IAkJCSAgIGRhdGEgPSBkYXRh
ICsgaQo=
--========GMXBoundary8659994239569--