Rufix
Rufix

Reputation: 201

ASP MVC 3, UTF-8 HTML charset not showing Polish chars. (Razor)

As title says. Story is, I've changed meta mark-up of my _Layout.cshtml page from:

<meta charset="utf-8" />

to

<meta content="text/html; charset=utf-8">

Effect? No Polish characters on page. Ok, let's revert the change. Effect? No Polish characters on page.

Btw it affects ONLY _Layout.cshtml, all other views show Polish letters properly. Proper letters are replaced by "Ĺ‚" characters.

Any ideas? Thought about changing browser, but it didn't work. Same stuff happens on different computer.

No other changes were made. Tried to revert project to older version from repository, didn't work.

Upvotes: 2

Views: 3477

Answers (1)

Rufix
Rufix

Reputation: 201

Opened in notebook and saved again wit UTF-8 encoding set. Worked.

Upvotes: 1

Related Questions