Convert Unicode to ASCII Method

The Convert Unicode to ASCII method converts Unicode character combinations that exist in a string to equivalent ASCII characters. It returns the revised string.

Format

unescape(string)

The following table describes the arguments for the Convert Unicode to ASCII method.

Argument Description

string

A string literal or string variable that contains the Unicode character combinations that this method converts.

Example

The following example displays the string in the argument. The Convert Unicode to ASCII method converts the Unicode character combinations to printable characters. The %20 is the Unicode representation of the space character. The following example normally displays on a single line because a new line cannot break a string:

TheApplication().RaiseErrorText(unescape("http://obscushop.com/texis/
%20%20showcat.html?catid=%232029

rg=r133"));

This example produces the following result:

http://obscushop.com/texis/  showcat.html?catid=#2029

rg=r133