Error displaying accented words in View

0

Good afternoon,

All words that have an accent on my system are being formatted wrong as in the example below:

  

Auto Inspection

Where it was supposed to be an inspection car. How to solve this, knowing that I'm using C # with Razor and MVC standard.

    
asked by anonymous 04.09.2018 / 19:52

1 answer

1

Did you inform the web.config and HTML of the type of language? Highly recommended in HTML:

<meta charset="utf-8" />
<meta name="language" content="pt-br" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />

At the beginning of View / HTML:

<!DOCTYPE html>  
<html lang="pt-br">

Web.config:

<globalization culture="pt-BR" uiCulture="pt-BR" requestEncoding="utf-8" responseEncoding="utf-8" />
    
04.09.2018 / 19:54