Converts a string from single-byte representation to unicode representation.
Kernel.bdh
StrAnsi2Unicode( out sUnicode : string, in nUnicodeByte : number, in sAnsi : string ): boolean;
true if successful
false otherwise
Parameter | Description |
---|---|
sUnicode | String receiving the unicode representation. |
nUnicodeByte | Number of bytes to be used from sUnicode buffer. |
sAnsi | String in single-byte representation that is to be converted. |
dcltrans transaction TMain var sAnsi, sUnicode: string; begin sAnsi := "hello world!"; StrAnsi2Unicode(sUnicode, STRING_COMPLETE, sAnsi); writeln(StrUnicodeLen(sUnicode)); StrUnicode2Ansi(sAnsi, STRING_COMPLETE, sUnicode); end TMain;