How to detect non-printable characters from updating a unicode-field from a form?

  • Thread starter Thread starter Nando
  • Start date Start date
N

Nando

In the US ASCII table (0-255), non-printable (or control characters), could
be filtered by Asc(ch)>32. But what happens if the table is Unicode
(0-65,000) and somebody from another country (like in Asia), uses another
character set? How do I detect non-printable characters in general,
regardless of the current character set? I'm trying to catch illegal
characters, before updating the field.
 
How would you even know which characters aren't printable? And why would you
care? You could probably check each character against its ASCII equivalent
(and stripping out 0-32), but anything above ASCII 32 should probably be left
alone.

JMHO - YMMV
 
Back
Top