Developer's reference PB2XLS for PowerBuilder

Reference > N_CST_UNICODE > of_unicode2ansi

of_unicode2ansi() method

Convert Unicode strings to ANSI

Syntax

n_cst_unicode.of_unicode2ansi(ablb_value{, ai_codepage})

Parameters

ablb_valueA blob whose value is the Unicode string
ai_codepage(optional)The unsigned integer whose value is the number of the code page . Default 0.

Return value

Blob. Return unicode string.

Examples

n_cst_unicode lnvo_unicode
string ls_value1
string ls__value2

ls_value1 = lnvo_unicode.of_unicode2ansi(ablb_unicode_value)
ls_value2 = lnvo_unicode.of_unicode2ansi(ablb_unicode_value, 1253)