Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

390
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda