Javascript validation for UTF-8 chatacters

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Madha K

    #1

    Javascript validation for UTF-8 chatacters

    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
  • Stewart Gordon

    #2
    Re: Javascript validation for UTF-8 chatacters

    Madha K wrote:[color=blue]
    > 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.[/color]
    <snip>

    You're in the wrong 'group.



    Stewart.

    --
    My e-mail is valid but not my primary mailbox. Please keep replies on
    the 'group where everyone may benefit.

    Comment

    Working...