Non English ascii codes

Discussion in 'ASP .Net' started by !!bogus, Mar 22, 2005.

  1. !!bogus

    !!bogus Guest

    Hi,

    I am developing an english/arabic webpage. I have some fields that should
    accept only english characters and other fields that should accept only
    arabic. I use a custom validator for this. How can I figure out whether each
    one of those fields contain the appropriate values.

    Giving me the ascii ranges (or at least how to figure out the arabic ones)
    would be sufficient.

    I would need to do this in client and server side (both VB)

    --
    Thank you
    Please post only
     
    !!bogus, Mar 22, 2005
    #1
    1. Advertisements

  2. !!bogus

    Joerg Jooss Guest

    !!bogus wrote:

    > Hi,
    >
    > I am developing an english/arabic webpage. I have some fields that
    > should accept only english characters and other fields that should
    > accept only arabic. I use a custom validator for this. How can I
    > figure out whether each one of those fields contain the appropriate
    > values.
    >
    > Giving me the ascii ranges (or at least how to figure out the arabic
    > ones) would be sufficient.


    There's no Arabian ASCII. You would need to use Unicode (e.g. UTF-8 or
    UTF-16 for the page encoding) here.

    Hopefully, all relevant Arabian characters have subsequent Unicode code
    points, so you would just need to check whether a char lies in a
    certain range. If not, you have to create some sort of lookup table.

    > I would need to do this in client and server side (both VB)


    I don't know if JavaScript supports Unicode. If it does, the approach
    is the same.

    Cheers,
    --
    http://www.joergjooss.de
    mailto:
     
    Joerg Jooss, Mar 22, 2005
    #2
    1. Advertisements

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. Greg  --
    Replies:
    4
    Views:
    2,790
  2. =?Utf-8?B?UmFlZCBTYXdhbGhh?=

    English/English DLL

    =?Utf-8?B?UmFlZCBTYXdhbGhh?=, Oct 15, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    1,906
    =?Utf-8?B?UmFlZCBTYXdhbGhh?=
    Oct 16, 2005
  3. IchBin
    Replies:
    1
    Views:
    954
  4. TOXiC
    Replies:
    5
    Views:
    1,671
    TOXiC
    Jan 31, 2007
  5. Replies:
    2
    Views:
    3,522
    Malcolm
    Aug 20, 2005
  6. softwarepearls_com
    Replies:
    10
    Views:
    5,473
    fylia
    Feb 26, 2009
  7. Jochen Lehmeier

    DBD::Oracle, Unicode, non-UTF8-non-ASCII strings

    Jochen Lehmeier, Jul 23, 2009, in forum: Perl Misc
    Replies:
    0
    Views:
    733
    Jochen Lehmeier
    Jul 23, 2009
  8. bruce
    Replies:
    38
    Views:
    655
    Mark Lawrence
    Nov 1, 2013
Loading...