'How to fix encoding in react?

I built a react app but special char (like => é,è,ç...) appears like this :

encoding error

I found this solution here but I just don't understand how to apply it, can anyone please help how to use it



Solution 1:[1]

Found a question that looks similar to the one you've asked about and it has this answer as the accepted answer

Solution 2:[2]

If you do not understand how to apply any code from npmjs.com website, click on the repository GitHub link on the right-hand side and check for folders like Test or Examples. You will get a brief idea of how to work and where to apply the given codes. You will have several examples there.

Check the below URL, this might help you. this link is from the same Github Test folder. https://github.com/quackes/webpack-encoding-plugin/blob/master/test/tests.js

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Yasas Nanayakkara
Solution 2 Anoop B.K