Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6552901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:30:59+00:00 2026-05-25T12:30:59+00:00

I am unable to find a Unicode supported isNumeric() function for javaScript and VBScript.

  • 0

I am unable to find a Unicode supported isNumeric() function for javaScript and VBScript. The functions are there, but are not unicode supported.

Even if there are no Unicode suported versions, then are there any API in both languages supporting isNumeric() or isDigit() functionality?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T12:30:59+00:00Added an answer on May 25, 2026 at 12:30 pm

    I have come upon the same problem a couple of weeks ago, and the solution I used was to check my character code against the unicode char code ranges that may define a digit.

    Here they are (the ranges come from PERL sources, as they already did the work!!):

    var isDigit = function(ch)
    {
      var iCode = ch.charCodeAt(0)
      return ( 0x0030 <= iCode && iCode <= 0x0039 )
          || ( 0x0660 <= iCode && iCode <= 0x0669 )
          || ( 0x06F0 <= iCode && iCode <= 0x06F9 )
          || ( 0x0966 <= iCode && iCode <= 0x096F )
          || ( 0x09E6 <= iCode && iCode <= 0x09EF )
          || ( 0x0A66 <= iCode && iCode <= 0x0A6F )
          || ( 0x0AE6 <= iCode && iCode <= 0x0AEF )
          || ( 0x0B66 <= iCode && iCode <= 0x0B6F )
          || ( 0x0BE6 <= iCode && iCode <= 0x0BEF )
          || ( 0x0C66 <= iCode && iCode <= 0x0C6F )
          || ( 0x0CE6 <= iCode && iCode <= 0x0CEF )
          || ( 0x0D66 <= iCode && iCode <= 0x0D6F )
          || ( 0x0E50 <= iCode && iCode <= 0x0E59 )
          || ( 0x0ED0 <= iCode && iCode <= 0x0ED9 )
          || ( 0x0F20 <= iCode && iCode <= 0x0F29 )
          || ( 0x1040 <= iCode && iCode <= 0x1049 )
          || ( 0x17E0 <= iCode && iCode <= 0x17E9 )
          || ( 0x1810 <= iCode && iCode <= 0x1819 )
          || ( 0x1946 <= iCode && iCode <= 0x194F )
          || ( 0x19D0 <= iCode && iCode <= 0x19D9 )
          || ( 0xFF10 <= iCode && iCode <= 0xFF19 )
          || ( 0x104A0 <= iCode && iCode <= 0x104A9 )
          || ( 0x1D7CE <= iCode && iCode <= 0x1D7FF )
    }
    

    By example, in Tamil, the character code for “one” is 0x0BE7, cf. http://www.fileformat.info/info/unicode/char/BE7/index.htm, and you can see it is part of the range 0x0BE6 => 0x0BEF so it’s a-ok.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've searched but was unable to find an existing regex function. Has anybody done
I have been unable to find any decent documentation on this function. The code
There is no documentation on cakephp.org and I am unable to find one on
That may be really simple but I'm unable to find a good answer. How
I think it might have been asked before but i was unable to find
I've been unable to find information about the timing of loading Flash and JavaScript.
I feel like I must just be unable to find it. Is there any
Well m searching hard on google but unable to find any working code that
This is probably a simple question but i've been unable to find a quick
I have done my research but I am still unable to find a solution

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.