That solution did not work for me, but maybe it's just outlook express that
doesn't do what the rfs wants it to?
My link is created like this:
<a>
<xsl:attribute name="href">
mailto:<xsl:value-of select="$_settings/supportMail"/>?subject=
<xsl:value-of select="$_shared/serviceName"/>: <xsl:value-of
select="$_fullName"/> <xsl:value-of select="mir:KNP"/>
</xsl:attribute>
<xsl:value-of select="$_shared/mailLink/responsible"/>
</a>
the output of <xsl:value-of select="$_fullName"/> can be "kabelskåp" for
instance.
So how do you suggest I modify the code?
I tested to change the encoding in outlook, so that it reads the mail as
UTF-8, and then it displays the character correctly ("kabelskåp").
However, most e-mail clients will be set to use ISO-8859-1, that's the
problem.
/Gabriel
----- Original Message -----
From: "Kevin Rodgers" <kevin(_dot_)rodgers(_at_)ihs(_dot_)com>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Thursday, March 03, 2005 9:30 PM
Subject: Re: [xsl] escaping/entities on the fly?
Gabriel K. writes:
Yeah in the e-mail adress yes, but this is actually in the subject line,
like so:
href= mailto:adress(_at_)adress(_dot_)com?subject=kabelskccccåp
But of course the same restriction applies to everything in the href
attribute.
I'm using outlook express. So it seems what I need is to convert to HTML
entities instead of %HH, since outlook can't display those characters
correctly.
Nor should it. The rules for escaping non-ASCII characters in mail
headers are explained in RFC 2047: http://ietf.org/rfc/rfc2047.txt
For example:
Subject: =?ISO-8859-1?Q?kabelskcccc=E5p?=
Which you would then URI-escape, yielding:
href="mailto:adress(_at_)adress(_dot_)com?subject=%3D%3FISO-8859-1%3FQ%3Fkabelskcccc%3DE5p%3F%3D"
But this is not possible in XSLT 1.0 so I'm screwed I guess. :)
Unless someone has implemented an ietf:rfc-2047-encode() stylesheet
function...
--
Kevin
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--