View coding

Asked

Viewed 55 times

0

I’m having trouble setting the encoding of a page I did on ASP.NET Core (keeps appearing ? in letters with accents).

Us MVC you used to do the configuration on web config. of the project, but now this file does not exist, and I have no idea how to transform its configuration to the Startup.Cs (where settings are now made).

1 answer

1


I have the solution to your problem, follow the following steps:
1. Open the file containing accentuated words;
2. Go to the File->Save As;
3. And there press the little arrow button Save and, Save with Encoding.
4. Then choose the UTF-8 option.
5. Don’t worry if VS asks you to replace the file

Start the project and see.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.