Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.

Join them; it only takes a minute:

Sign up
Join the Stack Overflow community to:
  1. Ask programming questions
  2. Answer and help your peers
  3. Get recognized for your expertise

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.

share|improve this question
    
Look at the actual HTTP request and the Content-Type header that the template is being served with. – deceze 12 hours ago
up vote 1 down vote accepted

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

share|improve this answer
    
Thanks :) it's working even if I think like you about w3c – Paladice 11 hours ago

You can specify language

<html lang="en">

or

Check these links

share|improve this answer
    
Thanks. html lang doesn't working. It's odd to must using i18n for this issue. – Paladice 16 hours ago
    
lang designates the human language of the content, not the charset encoding of the document. The latter is clearly the problem here, not the former. – deceze 12 hours ago

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.