Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 3 Tools : TO_UNICODE

TO_UNICODE
Converts a raw data string encoded in an external code page to Unicode.(F)
Invocation
unistring = TO_UNICODE(rdstring,externalcodepage)
 
Contains a string of RD (raw data) syntax. The data encoding corresponds to one of the 16 possible user-defined external syntaxes XC01 to XC16.
Example
This rule converts a string encoded in external syntax XC02 to Unicode.

 
TESTTOUNI;
_ LOCAL RESULT;
_ ----------------------------------------------------------------
_ ------------------------------------------------------------+---
_ TESTUNI.RD = 'ABC DEF'; ¦ 1
_ RESULT = TO_UNICODE(TESTUNI.RD, 'XC02'); ¦ 2
_ CALL ENDMSG(RESULT); ¦ 3

 
Line 1 sets Raw Data field RD of table TESTUNI to a string "ABC DEF". Line 2 converts this string (encoded in external code page XC02) to Unicode. Line 3 displays the result: ABC DEF.

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved