Determining type of characters in a form field

L

Lawrence Mak

Hi,

I'm writing an application that separates delimited address text generated
from a business card reading software. Because the addresses come in both
English and Chinese, I need a way to determine what characters are stored in
the field in order to separate the text accordingly to English and Chinese
styles. Is there a function to do this?

Thanks,

Lawrence Mak
 
J

John Nurick

Hi Lawrence,

If you're using Unicode it should just be a matter of using AscW() on
characters in the field, and checking whether the returned value is in
the Unicode ranges for Latin, Chinese, or other characters.

If you're using an older two-byte encoding things may be a bit more
complicated.
 
Top