[Zope3-dev] Re: zope.tal.xmlparser.XMLParser() dislikes unicode

Andreas Jung lists at zopyx.com
Thu Jan 18 01:06:41 EST 2007



--On 17. Januar 2007 22:49:11 +0100 Dieter Maurer <dieter at handshake.de> 
wrote:

> Andreas Jung wrote at 2007-1-17 17:48 +0100:
>> ...
>> So Martijn's and my proposal remain. They are not very different. In the
>> end the behavior is almost identical. But I will adopt your suggestion
>> to  remove
>> the preamble when storing the data internally (basically to avoid a
>> possible encoding ambiguity).
>
> In future times, the preamble might contain information which
> should not be dropped, e.g. when there is an XML version
> different from "1.0".

We're faster with new Zope versions than the W3C with any standard.

>
> For PageTemplates, we know that the encoding information is probably
> not relevant after the parsing -- unless we want to use it
> as a default for the "Content-Type" charset but I doubt that this
> is a good thing. If the "Content-Type"'s charset is given explicitely,
> then the "encoding" of the XML declaration needs to be
> adapted to this value during the serialization anyway -- thus
> overriding any "encoding" present there.

?

-aj

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope3-dev/attachments/20070118/d3e1fee3/attachment.bin


More information about the Zope3-dev mailing list