JScript: check if a string contains unicode characters

  • Thread starter Thread starter Lala
  • Start date Start date
L

Lala

Hi,
I need to check if a string contains unicode characters, and generate
an alert if it does. (I do not want to parse the string to unicode).
Anyone who knows how to do this?

Thanks! :D
 
all javascript string are unicode. you can use the charCodeAt() method to
check the range of the character.
 
Back
Top