MVC bundle changing css content - Awesome Font

1

I have a problem with the bundle of ASP.NET MVC. When I squeeze the local application, the FontAwesome icons render perfectly. Even when I enable the bundle location.

However, when I publish the application to the server, the bundle changes all "content" from the awesome font css to "?" and the icons disappear.

I do not think it should be any of the application, because iisexpress runs normally.

bundles.Add(new StyleBundle("~/bundles/style").Include(
                "~/Content/poppins.css",
                "~/Content/bootstrap.min.css",
                "~/Content/font-awesome.min.css",
                "~/Content/animate.css",
                "~/Content/filter.css",
                "~/Content/awesome-bootstrap-checkbox.css",
                "~/Content/bootstrap-datepicker.css",
                "~/Content/bootstrap-select.css",
                "~/Content/jquery.dataTables.css",
                "~/Content/multi-select.css",
                "~/Content/sweetalert.css",
                "~/Content/jstree.css",
                "~/Content/dataTables.select.css",
                "~/Content/bootstrap-tagsinput.css",
                "~/Content/style.css"
        ));

Images

Wrong icons (prod)

Certainicons(localhost)

All the contents of the font-awesome classes appear as (an example), but only after the bundle, because the css file is correct:

.fa-user {    
    content: '?';
}
    
asked by anonymous 05.12.2017 / 13:39

1 answer

0

Did you put the goal in the header?

<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">

or

<meta charset="utf-8" />
    
05.12.2017 / 14:38