UTF-8 coding does not work [closed]

1

I have a seemingly simple problem but it has given me some work here.

I'm developing a single page application using AngularJS , on page index.html I have tag <meta charset="UTF-8"/> , and like all partials are injected inside this page, the encoding is replicated to them, except for 1 file, otherwise I am not able to replicate the encoding to JavaScript >, alerts and messages registered in console.log are not receiving the encoding.

Does anyone know what could be happening?

Follow html code:

<html ng-app="WebApp">
<head>
        <meta charset="UTF-8" />
        <title></title>
        <link href="css/style.css" rel="stylesheet" type="text/css" />
        "... demais arquivos css"
</head>
<body ng-controller="mainController">
        <!-- Bibliotecas externas-->
        <!-- Config -->
        <!-- Services -->
        <!-- Controllers -->

        <!-- template do header -->
        <div ng-include="'partials/header.html'"></div>

        <!-- Templates do Angular controlados pelas rotas-->
        <div ng-view></div>

        <!-- template do footer -->
        <div ng-include="'partials/footer.html'"></div>
</body>
</html>
    
asked by anonymous 02.09.2015 / 15:06

1 answer

0

Try using meta tag in recommended format :

<meta http-equiv="content-type" content="text/html; charset=UTF-8">
Also confirm that your server is not sending a Content-Type header with another value as this would take precedence over meta tag in your HTML (you can confirm using your browser's dev-tools, inspecting each request).

    
03.09.2015 / 01:51