Greg Ewing wrote: > Stefan Behnel wrote: > >> In the absence of information provided by an external transport >> protocol (e.g. >> HTTP or MIME), it is a fatal error for an entity including an encoding >> declaration to be presented to the XML processor in an encoding other >> than >> that named in the declaration [...] > > But if the XML has already been decoded and turned into > a Python unicode string, there *is* external information > about the encoding -- we know it's encoded however Python > represents unicode internally. So this clause doesn't > apply.
Correct. That's exactly what I was indicating. Stefan _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com