0

I have a very strange issue I don't know how to solve. I created project from react .net core mvc template, but when I add characters like 'á,é,í,ó,ú' the Visual Studio save file as ISO 8859-1 (or the react files was already generated as that encoding) but instead of characters I can see question marks when I open the same file with Visual Studio Code as UTF-8. When I start debug, there are also question marks in the HTML. I can resave all the files with the Visual Studio code, but why the files are in ISO 8859-1?

First IDE is VS2019 and second one is Visual Studio Code

enter image description here

What settings I should check or adjust to have the files in UTF-8 instead of ISO 8859-1 when the project is creating (npm installing, etc)?

Muflix
  • 6,192
  • 17
  • 77
  • 153
  • Does this answer your question? [How to config visual studio to use UTF-8 as the default encoding for all projects?](https://stackoverflow.com/questions/41335199/how-to-config-visual-studio-to-use-utf-8-as-the-default-encoding-for-all-project) – Emile Bergeron Feb 26 '21 at 16:40
  • 1
    No, I have it unchecked, also I don't have issues with other projects, only this react one. – Muflix Feb 26 '21 at 16:50
  • 1
    I can't test it on my end, though I suppose the template was made with `ISO 8859-1` and it's just duplicated from that source as-is on your computer. If it's a one time thing with this project, you could just convert all files to `UTF-8` – Emile Bergeron Feb 26 '21 at 16:55
  • Thank you Emile, it is about several files, so it is not big deal, I was just surprised. – Muflix Feb 26 '21 at 16:56

0 Answers0