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


Chapter 3 Tools : FROM_UNICODE

FROM_UNICODE
Converts a Unicode string to Raw Data encoded in an external Code page.(F)
Invocation
rd_string = FROM_UNICODE(unistring,externalcodepage)
 
On return, 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 Unicode to external syntax XC02.

 
TESTFROMUNI;
_ LOCAL IDATA, RESULT;
_ ----------------------------------------------------------------
_ ------------------------------------------------------------+---
_ IDATA = U'ABC DEF'; ¦ 1
_ RESULT = FROM_UNICODE(IDATA, 'XC02'); ¦ 2
_ CALL ENDMSG(RESULT); ¦ 3

 
Line 1 sets local variable IDATA as a Unicode string. Line 2 converts it to a Raw Data string encoded in external code page XC02. Line 3 displays the result:
ABC DEF.

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