I am developing a web application that need to support UTF-8
characters.
For client side validations, can javascript be used to handle UTF-8
characters.
1) How javascript can be used to restrict non-utf8 characters?
2) Using javascript how to find the lengh of a string having unicode
characters?
e.g: For a field Name on the form, there is a corrosponding field Name
varchar2(10) in DB. Through my application when i try enter 10 normal
(i.e A-Z) characters, JDBC smoothly updates the DB.
But when my input has some 10 funny UTF8 characters, JDBC throws error
"inserted value too large".
Is there any javascript through which i can validate the input length
agaist the DB field size.
Thanks
Madha
characters.
For client side validations, can javascript be used to handle UTF-8
characters.
1) How javascript can be used to restrict non-utf8 characters?
2) Using javascript how to find the lengh of a string having unicode
characters?
e.g: For a field Name on the form, there is a corrosponding field Name
varchar2(10) in DB. Through my application when i try enter 10 normal
(i.e A-Z) characters, JDBC smoothly updates the DB.
But when my input has some 10 funny UTF8 characters, JDBC throws error
"inserted value too large".
Is there any javascript through which i can validate the input length
agaist the DB field size.
Thanks
Madha
Comment