I have french accents in a meta tag’s content section. Example:
<meta name="description" content="à Québec référence" />
When I look at the page source I get:
<meta name="description" content="à Québec référence" />
I’ve tried using à Québec référence but that’s how it is displayed in the content section.
I am using
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" /> and I don’t think this can change without messing up thousands of characters elsewhere in my project.
How do I get it to look like the first example, is there a php function to use? Thanks.
Also an explanation of why it gets translate to ‘à Québec référence’ would be nice.
UPDATE
I’ve figured out a solution. Programs like Aptana Studio and Notepad++ were saving the characters in a strange way. I used notepad to edit it and saved it with that and that seemed to solve the problem. Thanks for all your quick responses. Much appreciated. 🙂
You need to encode the file in the right form, download notepad++ and switch to the correct encoding for french.