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

777
Visualizações
FileReader - readAsText encoding both utf-8 and ANSI

I'm using the API readAsText for getting the content from file with french characters

encoding = "UTF-8"
reader.readAsText(e.target.files.item(0), encoding)

The files could be encoding by UTF-8 or ANSI, in this case it is not working for ANSI file while reading UTF-8 and also not working for UTF-8 file while reading ANSI file.

I've tried ISO-8859-1, ISO-8859-3, ISO-8859-4, CP1251, latin1, none of them work for both.

So is there a way to read both utf-8 and ANSI, or whith encoding I should use for french file ? thanks for help

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