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

201
Views
How to stop question marks encoding problem

I have this ecommerce projetct in React JS.

I didn't use Create React App to create the project as the ecommerce platform I'm using doesn't support it, so I just configured Webpack to create a bundle, and I upload that bundle to the platform.

The problem is that the platform has some encoding preferences to HTML and JS files (ISO-8859-1 to HTML and UTF-8 to JS). Since I'm importing the bundle, I just saved it as UTF-8 and insert the 'charset="UTF-8"' property on the script tag. It worked well, but now I want to split my code based on the routes of the application, using React Router and lazy/Suspense.

It worked well, but now all my pages, except for Home page, has this question mark error where it should be an accent letter. I asume the problem is encoding, since I'm only importing the primary bundle itself (bundle.js), not any of the other pages bundles (I think this is the right way to do it), so all of them are not being read with UTF-8 encoding.

Can anyone help me?

enter image description here

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