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

116
Visualizações
How to transform the word Gr\u008Egoire to it's normal form in Javascript?

Hope you are doing well! I have a list of french names with accents, but I receive them encoded like "Gr\u008Egoire", but I want to display the real word. Thank you in advance for your help!

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

The problem is the encoding of the e-acute letter (é). It should be \u00e9, since \u should introduce an UTF-16 encoded character, in which case you'd have nothing to do, putting this string in an element will display "Grégoire".

But \u008e is MAC Roman encoding.

You should try to find a converter from Mac Roman to UTF-8, I think there is one in node.js, or build your translation table from the Mac Roman encoding table.

See https://fr.wikipedia.org/wiki/MacRoman for the table.

about 4 years ago · Juan Pablo Isaza Relatório
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