Search code examples
angularjsangular-translate

Question mark in binded text in template


While implementing angular translate i ran into French translation words such as: 'Propriété Catégorie' appearing in the view as Propri�t� Cat�gorie.

Dont know what this means. Is it that the used font doesnt have this character implemented? I think not since writing the HTML name é parses nicely into an é.

Question: how to implement this correctly, whats the way to go? Dont feel like going with the HTML name cause then I have to implement the way I place the translation key in a different way so it renders HTML instead of just strings.


Solution

  • Your File is saved as ISO-8859-1 or any other 1 byte char set. You are trying to read the File as UTF-8.

    The solution: Set your encoding to ISO-8859-1.

    Or: Save the file as UTF-8.