October 5, 2000 - Escaping Separators in mailto: URLs
October 5, 2000|
Escaping Separators in mailto: URLs
Tips: October 2000
Yehuda Shiran, Ph.D.
escape()function does it for you. Let's take, for example, the following script:
The value of
myEncodedString will be:
mailto URL. The question mark is used as a delimiter between the mail address and the rest of the URL, and the Ampersand character is used as a delimiter between name/value pairs. If a string includes these characters (
&), it could not be used as a subject or a body value in a URL. Be sure to encode only the subject and message body values in a
mailto URL. Do not encode the delimiters of the URL (
&). Another way to represent a space is by the
Learn more about encoding and decoding URLs in Column 59, IE 5.5: Formatting, URIs, and Stack Operations.