This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
property files and character encodings
- To: java at gcc dot gnu dot org
- Subject: property files and character encodings
- From: Anthony Green <green at redhat dot com>
- Date: Sun, 9 Sep 2001 22:09:23 -0700
- CC: rhug-rhats at sources dot redhat dot com
- Reply-to: green at cygnus dot com
I just figured out why the xalan xsl transformer isn't running. It's
reading property files (either compiled in, or from disk) which
contain text like this...
# Note that the colon after the protocol needs to be escaped.
{http\u003a//xml.apache.org/xslt}indent-amount=0
{http\u003a//xml.apache.org/xslt}content-handler=org.apache.xalan.serialize.SerializerToHTML
{http\u003a//xml.apache.org/xslt}entities=HTMLEntities.res
{http\u003a//xml.apache.org/xslt}use-url-escaping=yes
{http\u003a//xml.apache.org/xslt}omit-meta-tag=no
Note the escape sequence for `:'.
The program then tries to search this resource bundle for
"{http://xml.apache.org/xslt}content-handler" and doesn't find a
match. The problem is that \u003a isn't being converted into `:' when
read from a property file. I don't know what the right solution is.
Advice welcome...
Thanks,
AG