FROMUNICODE

FROMUNICODE( string, encoding )

stringThe UNICODE string to translate.
encodingThe encoding codepage (supported by IBM's ICU) to use for the translation.
Return:FROMUNICODE returns a single DATA value.

The FROMUNICODE function returns the string translated from the specified encoding to a DATA value.

Example:

DATA5 x := FROMUNICODE(u'ABCDE','UTF-8'); //results in 4142434445

See Also: TOUNICODE, UNICODEORDER