Subject: Re: [xsl] using xsl:message with UTF-8 characters From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Mon, 23 Apr 2007 14:45:05 +0200 |
On 4/23/07, Michael Kay <mike@xxxxxxxxxxxx> wrote:
I don't know how good Java is at getting the encoding right, for example
whether it will use a different encoding if you use configuration options
such as "cmd /u" identified by Abel. I'll do some experiments.
As far as I know, Java will use the "platform default encoding" unless told otherwise, which on a Windows machine is CP1252.
If you want to set the default encoding to something else from the command line, then you can use the "file.encoding" system property, eg:
java -Dfile.encoding=UTF-8 -jar saxon8.jar .....
Cheers, -- Abel Braaksma
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version = "2.0" xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" >
<xsl:template name="main"> <xsl:variable name="t"> <t>V: ªº€ķ</t> </xsl:variable> <xsl:copy-of select="$t" /> <xsl:message select="$t" /> </xsl:template>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] using xsl:message with UT, Andrew Welch | Thread | Re: [xsl] using xsl:message with UT, Manfred Staudinger |
RE: [xsl] using xsl:message with UT, Michael Kay | Date | Re: [xsl] using xsl:message with UT, Andrew Welch |
Month |