0
votes

I'm working on ASP.NET MVC 5 app. Added utf-8 support in _Layout.cshtml but this not solving my problem. Only in shared _Layout.cshtml i get weird characters for static cyrillic text. I use devextreme components like grid, chart etc. but there is no problem the cyrillic letters are okay. This is an example what i get: enter image description here

Added lang="en" in head but not help.

1
Flagrant mojibake case (example for the line with "profile icon" in Python): 'Профил'.encode( 'cp1251').decode( 'utf-8') returns 'Профил'. - JosefZ

1 Answers

1
votes

After hours researching i found this: <globalization fileEncoding="utf-8"/> in <system.web> in Web.config.

This line solved my problem.