I know how to convert an UTF-8 string into an Ansi string using API or the functions José Roca developed in there: http://www.jose.it-berater.org/smffo...php?topic=74.0
and they are working fine.
But I would like to know if it is possible to convert an UTF-8 string into an Ansi string only using PB9 native ACODE$ / UCODE$ functions. So far I was not able to get correct result.
I was thinking that something like the following would do the job but not:
Am I missing something? (quite sure
)
Thanks in advance.
Eros
and they are working fine.
But I would like to know if it is possible to convert an UTF-8 string into an Ansi string only using PB9 native ACODE$ / UCODE$ functions. So far I was not able to get correct result.
I was thinking that something like the following would do the job but not:
Code:
strUnicodeString = UCODE$(strUTF8String, %CP_UTF8) strAnsiString = ACODE$(strUnicodeString)

Thanks in advance.
Eros
Comment