ConvertUCharArray - cCharTranslate
Converts a UChar array from one character encoding format to another
Type: Function
Return Data Type: UChar[]
Parameters
| Parameter | Type | Description |
|---|---|---|
| UCharData | UChar[] | UChar array to be converted |
| iFromCP | Integer | Source Array EncodingConstantMeaning |
| iToCP | Integer | Destination Array EncodingConstantMeaning |
Syntax
Function ConvertUCharArray UChar[] UCharData Integer iFromCP Integer iToCP Returns UChar[]
Call Example
Get ConvertUCharArray UCharData iFromCP iToCP to UChar[]Variable
Description
Remember that a UChar array is just an array of bytes and that there is no "natural" encoding format. The developer can encode a UChar array however they wish.
Sample
Convert a UChar array from UTF8 to OEM:
Get ConvertUCharArray InUCArray of oCharTranslate CP_UTF8 CP_OEMCP to OutUCArray
Return Value
Converted array