xsl-list
[Top] [All Lists]

Re: [xsl] Character Encoding Problem

2014-09-25 05:32:37
On Tue, September 23, 2014 9:32 pm, Michael Kay mike(_at_)saxonica(_dot_)com 
wrote:
On 23 Sep 2014, at 21:23, Craig Sampson craig(_dot_)sampson(_at_)sas(_dot_)com
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:
  We?re 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(_at_)mentea(_dot_)net
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
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>