Function to copy a Unicode string to an ANSI character string.

Inputs

Input

Data type

Description

WSTR

WSTRING

Unicode character string.

UTF8

BOOL

Code page. See remarks below.

Outputs

Output

Data type

Description

Q

STRING

ANSI string containing copied characters.

Remarks

If UTF8 is TRUE, then the string is converted using the standard UTF8 encoding.

If UTF8 is FALSE, then the string is converted using the active code page.

If the input is too long for the destination string, then the result is truncated.


Created with the Personal Edition of HelpNDoc: Elevate Your Documentation Process with HelpNDoc's Advanced Features