Salesforce

UnicodeToANSI (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

UnicodeToANSI (Magic xpa 3.x)

Converts a Unicode string to ANSI characters according to a selected code page.

Syntax:

UnicodeToANSI (Unicode String, Code Page)

Parameters:

Unicode String: A string containing Unicode characters, to be converted to ANSI.

Code Page: A number representing the code page that will be used for the conversion. If this parameter's value is 0, the default code page is used.

Returns:

An ANSI string containing the converted Unicode string. If an invalid code page was sent, or the Unicode string is NULL, the function returns a NULL value.

Note:

If the Unicode string contains characters that are not included in the designated code page, data might be lost during the conversion process.

See also:

UnicodeFromANSI

How Do I Create or Read a Unicode Text File?

How Do I Convert Between ANSI and Unicode?

The Online and Rich Client Samples projects (program UN06 and RUN06)

Reference
Attachment 
Attachment