March 16, 2000 - ISO Latin-1 Conversion
March 16, 2000 ISO Latin-1 Conversion Tips: March 2000
Yehuda Shiran, Ph.D.
|
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.