xsl-list
[Top] [All Lists]

Re: escaping/entities on the fly?

2005-03-04 05:29:17
----- 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 10:54 PM
Subject: Re: [xsl] escaping/entities on the fly?

1. If you click on the link in the mail message, does your mail
   composition agent put "=?ISO-8859-1?Q?kabelskcccc=E5p?=" in the
   subject line?

Yes it does. Are you saying this is correct, that it should be this way?

2. If you change the address to your own and send it, is the message
   delivered with the subject intact?  Has your mail user agent added
   the appropriate MIME headers:

The message is delivered with the subject : "kabelskccccåp". So this seems to work. :)

MIME-Version: 1.0
Content-Type: text/plain

Yes it has:
Content-Type: text/plain;
format=flowed;
charset="iso-8859-1";
reply-type=original

3. How does your MUA display the subject?

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"/>&#32;<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?

What does the above XSLT generate?

it generates this:
<a href="mailto:support(_at_)mirakel(_dot_)nu?subject= Mirakel Webbserver: Kabelsk%C3%A5p KS0100">


So my problem is that "å" is transformed to "%C3%A5" by the the XSL processor and that does not display correctly in the mail client. Instead it shows: "KabelskÃ¥p", and the message source says: "Kabelsk=C3=A5p".


/Gabriel


--~------------------------------------------------------------------
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>
--~--