Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

107
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!