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?