[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-3000
Subject:    Re: [Python-3000] XML as bytes or unicode?
From:       Stefan Behnel <stefan_ml () behnel ! de>
Date:       2008-08-29 9:37:47
Message-ID: g98g1b$d80$1 () ger ! gmane ! org
[Download RAW message or body]

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/python-3000%40progressive-comp.com
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic