JScript: check if a string contains unicode characters

Discussion in 'ASP .Net' started by Lala, Nov 17, 2003.

  1. Lala

    Lala Guest

    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
    Lala, Nov 17, 2003
    #1
    1. Advertising

  2. Lala

    bruce barker Guest

    all javascript string are unicode. you can use the charCodeAt() method to
    check the range of the character.



    "Lala" <> wrote in message
    news:...
    > 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
    bruce barker, Nov 17, 2003
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    5
    Views:
    912
    X-Centric
    Jun 30, 2005
  2. Replies:
    5
    Views:
    5,890
    Daniele Futtorovic
    Aug 19, 2008
  3. tomaszewski.p
    Replies:
    4
    Views:
    764
    Tom Anderson
    Sep 12, 2008
  4. Grzegorz ¦liwiñski
    Replies:
    2
    Views:
    939
    Grzegorz ¦liwiñski
    Jan 19, 2011
  5. John Smith
    Replies:
    8
    Views:
    161
    David K. Wall
    Sep 26, 2003
Loading...

Share This Page