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

775
Vistas
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 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