Returns the charset encoding for the PSArgClass object. This method is for use with JSP 4GL targets only.
ArgObj.getCharacterEncoding ( )
Argument |
Description |
---|---|
ArgObj |
Object of the PSArgClass type for which you want to obtain the character set used to encode values |
String. The returned string is the charset used by the PSArgClass object.
If you are adding arguments to a URL in a psPage.Redirect call, you might need to know the character set used by the PSArgClass argument.
You can set the character encoding for the PSArgClass object by calling the setCharacterEncoding method.
This example gets the value of the charset encoding of the PSArgClass and writes it to a text box:
PSArgClass myURLParam=null;
String charSet;
myURLParam = new PSArgClass();
charSet=myURLParam.getCharacterEncoding();
sle_1.value=charSet;