Newer Version Available

This content describes an older version of this product. View Latest

Differences in Escaping Reserved Characters

The AJAX Toolkit has special escaping rules for some reserved characters.

If you have a single quote or backslash in a string literal, you must use two backslashes instead of one to escape it. For example, the following statement in a Java client program is valid for finding account names like Bob's B-B-Q:

But if you are using the AJAX Toolkit, you need to escape the single quote literal character twice: