As you can see in the image, VSC shows me that strange character instead of the "ó". The worst of all is that it overwrites that word and stays as in the image. When I open the project in my eclipse it shows up with the weird character.
I need help setting it up so it doesn't do that. Thanks.
You have opened the file with a different encoding than the one used when it was saved.
Take a look at the status bar in Visual Studio Code, where it shows encoding. You will probably see "UTF-8".
Clicking on it will allow you to change it to another, for which it will give you the choice between "reopen with encoding" or "save with encoding". Choose the first option and try "Western Windows 1252"
Once you have converted it and you see it correctly in the editor, you can choose which encoding to save it with, by clicking on the same place again and choosing "Save with encoding". Choose utf8 for maximum compatibility with other platforms (and with VS Code itself, for when you open it again).
The abulafia option is very useful, but what if we have a work team in different countries and with different IDE 's ?
We can define a configuration file at the repository level to avoid these errors, in the root of your repository create a file whose name is .editorconfigand define what type of encoding you want to use; In your case, the file will look like this:
charset = utf-8
In the same way, many interesting things can be done with this file. I invite you to visit the editorconfig.org website.
You have opened the file with a different encoding than the one used when it was saved.
Take a look at the status bar in Visual Studio Code, where it shows encoding. You will probably see "UTF-8".
Clicking on it will allow you to change it to another, for which it will give you the choice between "reopen with encoding" or "save with encoding". Choose the first option and try "Western Windows 1252"
Once you have converted it and you see it correctly in the editor, you can choose which encoding to save it with, by clicking on the same place again and choosing "Save with encoding". Choose utf8 for maximum compatibility with other platforms (and with VS Code itself, for when you open it again).
The abulafia option is very useful, but what if we have a work team in different countries and with different IDE 's ?
We can define a configuration file at the repository level to avoid these errors, in the root of your repository create a file whose name is
.editorconfig
and define what type of encoding you want to use; In your case, the file will look like this:In the same way, many interesting things can be done with this file. I invite you to visit the editorconfig.org website.