Subject: | Double XHTML encoding |
Dist: Mac-PropertyList-SAX 0.84
Perl: All (Seen on v5.10.0 MacOSX and v5.8.8 CentOS)
I've fixed the problems the way I'd have it and am attaching a copy of
our version. See the POD in the file.
Basically our iPhone App needed the raw UTF-8 to display so that's what
we wanted in the plist we wee generating. A small set of characters
needed to be XHTML escaped for the plist (quotes, etc.).
The 0.84 version was actually encoding the data twice by calling
_escape() once from create_from_ref and again from the write subclasses.
Fixing this is the only change in the default behavior of the new
version and can be controlled by setting $OLD_BEHAVIOR.
Also, the variable $ENCODE_ENTITIES was defined but never used. It now
functions, plus I added $ENCODE_UNSAFE_CHARS which if $ENCODE_ENTITIES
is set (the default) can used to give a character class set limiting the
characters to encode.
I hope this is useful and can be incorporated into the release version.
Subject: | SAX.pm |
Message body is not shown because it is too large.