Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

385
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda