[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: escaping/entities on the fly?

Subject: Re: escaping/entities on the fly?
From: Kevin Rodgers <kevin.rodgers@xxxxxxx>
Date: Thu, 3 Mar 2005 13:30:17 -0700 (MST)
kevin rodgers
Gabriel K. writes:
> Yeah in the e-mail adress yes, but this is actually in the subject line, 
> like so:
> href= mailto:adress@xxxxxxxxxx?subject=kabelskccccep
> 
> 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@xxxxxxxxxx?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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.