This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

property files and character encodings



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]