Developer's reference PB2XLS for PowerBuilder

Reference > N_CST_UNICODE > of_ansi2unicode

of_ansi2unicode() method

Convert ANSI strings to Unicode

Syntax

n_cst_unicode.of_ansi2unicode(as_value{, ai_codepage})

Parameters

as_valueA string whose value is the ANSI 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
blob lblb_unicode_value1
blob lblb_unicode_value2

lblb_unicode_value1 = lnvo_unicode.of_ansi2unicode(as_ansi_value)
lblb_unicode_value2 = lnvo_unicode.of_ansi2unicode(as_greek_value, 1253)