I have a script.js file that contains several lines in cyrillic. When I try to load this with a standard link, for example:
<script type="text/javascript" src="~/Content/Script/Script.js"></script>
Cyrillic letters become rectangular / badCharsetCaracters.
This solves the problem:
<script type="text/javascript" src="~/Content/Script/Script.js" charset="windows-1251"></script>
How to set encoding using ASP.NET MVC 4 packages? Code like this:
bundles.Add(new ScriptBundle("~/bundles/scripts").Include(
"~/Content/Script/Script.js"));
source
share