angularjsencodingutf-8ng-view

angularjs : ng-view encoding issue


I have an issue with my web application.

I'm using AngularJs v1. When I'm wrinting

In my index.html I have :

<meta charset="utf-8" />
[...]
<button class="btn btn-success">Enregister les préférences</button>

I have this render on my browser (chrome or firefox) :

Enregister les préférences

But, with the same in my template HTML which replace the ng-view, I have :

Enregister les pr�f�rences

How to extends the charset of index.html to ng-view ?

Thanks.


Solution

  • If you add meta tag for each of the template HTML, then it works. For ex. below code

      <head>
      <meta charset="utf-8">
      </head>
    

    However I think your question is about inheritance of meta tag inside template html. Not sure if its supported by w3