setCharacterEncoding

Description

Sets the charset encoding for the PSArgClass object. This method is for use with JSP 4GL targets only.

Applies to

PSArgClass

Syntax

ArgObj.setCharacterEncoding ( String enc )

Argument

Description

ArgObj

Object of the PSArgClass type for which you want to change the character set

enc

Character set encoding you want to use for adding arguments to a PSArgClass object

Returns

None.

Usage

If you are adding arguments to a URL in a psPage.Redirect call, you might need to change the character set used by the PSArgClass argument.

You can get the character encoding used by the PSArgClass object by calling the getCharacterEncoding method.

Examples

Example 1

This example sets the value of the charset encoding used by PSArgClass to simplified Chinese:

PSArgClass myURLParam=null;
myURLParam = new PSArgClass();
myURLParam.setCharacterEncoding("gb2312");

See also