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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top