ENCODISVALID Function
specifies a valid encoding name.
Syntax
Required Argument
- source
-
a character string
that represents an encoding name.
Details
The ENCODISVALID function
returns the following values:
0 |
the character string is not a valid encoding name. |
1 |
the character string is a valid short encoding name. |
2 |
the character string is a valid long encoding name. |
3 |
the character string is a valid alias encoding name. |
Example
The following examples
demonstrate the ENCODISVALID features:
|
|
isValid= EncodIsValid(“xyz”);
put isValid;
|
|
isValid= EncodIsValid(“wlt2”);
put isValid;
|
|
isValid= EncodIsValid(“wlatin2”);
put isValid;
|
|
isValid= EncodIsValid(“cp1250”);
put isValid;
|
|