Salesforce

How Do I Show My UTF8 String on the Screen? (Magic xpa 2.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

How Do I Show My UTF8 String on the Screen? (Magic xpa 2.x)

Sometimes you get a UTF8 string from an external source, such as a Web Service or a text file. In order to see the UTF8 strings, you should convert it to ANSI and then convert the ANSI value to a Unicode format.

In order to do this, you need to have the UTF8ToAnsi function embedded in the UnicodeFromANSI function. The syntax would be, for example, UnicodeFromANSI(UTF8ToAnsi(A),936). In this example, A is the BLOB Binary variable containing the UTF8 string and 936 is the codepage of the string, Chinese in this case.

This only works when the data contains one language.

Reference
Attachment 
Attachment