Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

384
Views
Javascript includes behavior for non ASCII text based on browser (Mozilla Vs Chrome)

I am writing a simple app where text comes in, certain words are to be replaced and the text is sent out again. It all works well as long as I am working with ASCII characters.

I now want to do the same for Indic text. I was initially using str.replace() and found out that it was not replacing anything. I then checked if str.includes() works. It turns out that str.includes("नमन") works (returns true) on Firefox but not on Chrome. I find this very strange. Can someone point out if I am missing any settings?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!