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

RE: encoding shift_jis into an attribute

Subject: RE: encoding shift_jis into an attribute
From: "Josh Canfield" <Josh.Canfield@xxxxxxxxxxxx>
Date: Thu, 3 Jun 2004 16:20:51 -0700
javascript shift_jis
	>You asked about setting the output encoding to "ascii".  This doesn't
	>seem to make any difference.

	That's too bad. In general, finding an output method (like "ascii" or 
	"US-ASCII" or whatever your processor supports) that doesn't include 
	upper-ASCII characters is a good way to compel the serializer to escape all 
	non-ASCII characters as Unicode character references.


The problem isn't that the characters aren't escaped, but that they are escaped using the URI scheme (%HH), instead of the XML scheme (&#DDDD;).

I'm not familiar with the help tool that you are using, but it seems like it should handle the un-escaping of it's parameter since that is the correct way to represent strings in an href attribute...

In Netscape 7 and IE5.5 there is encodeURI, and decodeURI JavaScript functions for handling uri encoded strings:

<a href="javascript:alert(decodeURI('{label}'));">foo</a>

Although, in reality I would be using the onclick attribute, and the issue would be moot...

Josh


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.