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

  • SEARCH
  • Home
  • 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 7864005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T23:39:34+00:00 2026-06-02T23:39:34+00:00

I am building a JavaScript array depending on the input of the user. The

  • 0

I am building a JavaScript array depending on the input of the user. The array is building fine but if the user enters Chinese symbols it crashes. I’m assuming that it is if the user enters a chinese ” or a , or a ‘. I have the program replacing the English versions of this but i don’t know how to replace the Chinese versions of it.

Can anyone help?

Thanks to all for their input

  • 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-06-02T23:39:36+00:00Added an answer on June 2, 2026 at 11:39 pm

    From What's the complete range for Chinese characters in Unicode?, the CJK unicode ranges are:

    • 4E00-9FFF (common)
    • 3400-4DFF (rare)
    • F900-FAFF (compatability – Duplicates, unifiable variants, corporate characters)
    • 20000-2A6DF (rare, historic)
    • 2F800-2FA1F (compatability – supplement)

    Because JS strings only support UCS-2, which max out at FFFF, the last two ranges probably aren’t of great interest. Thus, if you’re building a JS string should be able to filter out chinese characters using something like:

    replace(/[\u4e00-\u9fff\u3400-\u4dff\uf900-\ufaff]/g, '')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an array in Javascript that i am trying to pass to php.
I'm building a concert calendar that's very heavy on javascript (using jQuery). I'm having
When building code like this: <script type=text/javascript src=<%=ResolveUrl(~/js/js.js)%>></script> or <input type=image src=<%=ResolveUrl(~/img/submit.png)%> /> Should
Is there any other way to write javascript:false that is more pleasant? I'm building
I'm building a Javascript application and eash user has an individual UserSession. The application
I am building Javascript application for mobile browsers (not wrapped-as-native app). I noticed that
I'm building a webservice that automatically combines and minifies a website's javascript. The web
I have a problem with an array that is getting returned from a query
I have a <input> that displays suggestions when someone types in it. I am
I'm building a Web Page that allows the user to pick a color and

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.