Convert Unicode String to ASCII and back

Grolle

Member
Licensed User
Hi,

is there a function to convert a string from Unicode to ASCII and back?

Best regards ...
 

agraham

Expert
Licensed User
Longtime User
is there a function to convert a string from Unicode to ASCII and back?
All strings in Basic4ppc (.NET) are Unicode UTF16 strings and cannot be anything else. The Bitwise library has methods to convert strings to and from byte arrays according to different encodings. ASCII is code page 20127. If you are only using pure ASCII, i.e. chr(0 )to chr(127), then UTF8 will be identical.
 
Top