Re: [xsl] UTF-8 URL encoding with XSLT 1.0

Subject: Re: [xsl] UTF-8 URL encoding with XSLT 1.0
From: "Martynas Jusevicius" <martynas.jusevicius@xxxxxxxxx>
Date: Sat, 2 Jun 2007 11:33:20 +0200
That is what I did in the first place. But still, I don't think it can
encode characters outside the ASCII range. In my input I have a
&#8212; (n-dash), and the stylesheet gives me warning: "String
contains a character that is out of range! Substituting "?"".
I think it also says that in the comments, if I get it right.

Martynas

On 6/2/07, bryan rasmussen <rasmussen.bryan@xxxxxxxxx> wrote:
you need to change the xsl:output encoding attribute to be utf-8 for
it to output utf-8. in the referenced stylesheet it is currently iso
8859-1

cheers,
bryan rasmussen

On 6/2/07, Martynas Jusevicius <martynas.jusevicius@xxxxxxxxx> wrote:
> Hi,
>
> is there a stylesheet somewhere to encode URLs in XSLT 1.0?
> So far I'm using one from http://skew.org/xml/stylesheets/url-encode/
> , but it looks like it cannot handle UTF-8.
>
> Martynas

Current Thread