Error showing accent words in View

Asked

Viewed 156 times

0

Good afternoon,

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

Auto de Inspe¿¿¿o

Where it was to be auto inspection. How to solve this, knowing that I am using c# with Razor and MVC standard.

  • Where do they appear like this? in View? include your code.

  • In the view is normal, only happens this in data coming from the database. Use oracle 11g and everything I bring from the bank replaces the accent by ?

1 answer

1

Did you happen to inform on web.config and HTML 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" />
  • 1

    yes I already have this line on web config as follows: <globalization Culture="en-BR" fileEncoding="utf-8" requestEncoding="utf-8" responseEncoding="utf-8" uiCulture="en-BR" />

  • Is using some database or is a text written directly in the View?

  • oracle database

Browser other questions tagged

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