spacer
Yehuda Shiran March 16, 2000
ISO Latin-1 Conversion
Tips: March 2000

Yehuda Shiran, Ph.D.
Doc JavaScript

Developer News
Microsoft Shows Off Silverlight 4, IE9 Plans
Metasploit Expands Vulnerability Test Framework
HyperCard Reborn?

ISO Latin-1 character set is the Internet standard. It consists of only alphanumeric characters. All non-alphanumeric characters are replaced by a string in the form of %xy, xy being the ASCII encoding of a non-alphanumeric character. The escape() function converts any string to ISO Latin-1 standard. For example:

document.write(escape("My phone # is 123-456-7890"));

should yield the following encoding:

My%20phone%20%23%20is%20123-456-7890

The function unescape() converts an ISO Latin-1 representation back to a normal string.

Learn how Internet Explorer does it in version 5.5 in Column 59, IE 5.5: Formatting, URIs, and Stack Operations.


People who read this tip also read these tips:

Look for similar tips by subject:

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Rolling Out Your Own HTML Application Version Control · HTML 5: Client-side Storage · Working with Ajax Server Extensions
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Wi-Fi Product Watch, November 2009 · Chip Market Recovering From '08 Collapse · Low-Cost Tools to Kickstart Your New Business