javascript - how to validate not to allow Chinese characters -


one of sql statement breaking when user enters chinese characters. did research , couldn't find any.

is there code available plugin or javascript function validate , allow english alphanumeric , allow special symbols.

if validate chinese characters there can other languages right , thought allow english characters combination of numbers , symbols.

any direction or input appreciated thanks

i tried allows alphanumeric

/[^a-za-z 0-9]+/g 

how utf8 encoding text rather ban languages?


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -