[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Character Encoding Problem


Subject: Re: [xsl] Character Encoding Problem
From: "Tony Graham tgraham@xxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 25 Sep 2014 10:32:19 -0000

On Tue, September 23, 2014 9:32 pm, Michael Kay mike@xxxxxxxxxxxx wrote:
> On 23 Sep 2014, at 21:23, Craig Sampson craig.sampson@xxxxxxx
> <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>>   Were trying to create a java properties file using XSLT 2.0 in Saxon.
>> The input is XML encoded as UTF-8. The properties file needs to be
>> encoded as ISO-8859-1. The character giving the problem, in the input
>> file, is &#x201c; which is a left hand double quote. Looking at the
>> ISO-8859-1 character set the closest character appears to be a double
>> quote  with no hand (left/right).

To move the goalposts, Java can read XML property files [1] or,
alternatively, 'native2ascii' [2] can re-encode property files.

Regards,


Tony Graham                                         tgraham@xxxxxxxxxx
Consultant                                       http://www.mentea.net
Chair, Print and Page Layout Community Group @ W3C    XML Guild member
  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
Mentea       XML, XSL-FO and XSLT consulting, training and programming

[1] http://docs.oracle.com/javase/7/docs/api/java/util/Properties.html
[2]
http://docs.oracle.com/javase/7/docs/technotes/tools/windows/native2ascii.html


Current Thread
Keywords