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

200
Visualizações
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
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