Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.
Hi,
I’m working on a template at the moment, and I’d like to use UTF-8 as charset.
I’ve got this inside the head section:
@<meta http-equiv=“content-type” content=“text/html; charset=utf-8”>@
And I’ve got this at the top of the document (PHP):
@header(“content-type: text/html; charset=utf-8”);@
Now, when I type something like “é” in the HTML code I get a “?” in the browser and the validator says it’s an invalid character. However, if I use ISO-8859-1 as charset, the browser can display the character correctly.
A while ago I’ve worked with the CMS called Textpattern, and it used UTF-8. When I typed “é” in my template the browser could display it correctly. I’ve taken a look at the PHP files of Textpattern to look for the code which made this work, but I can’t find it, unfortunately…
Maybe someone here knows what I should do?
(By the way: I’m using HTML 4.01 Strict, don’t know if this is of any value, concerning solving this problem.)
Yes, I know about the entities, I often use this page to look them up: A List Apart Styleguide. I suppose I could use those, that’s not the problem. But with UTF-8 it shouldn’t be necessary to use entities for characters like “é”, if I’m understanding correctly. In systems like Textpattern, Wordpress etc. they’ve used some sort of server side scripting (I think) to make this work like it should, but I can’t find out how precisely they did it.
LOL, you got me there… I selected the wrong encoding type in the editor (how foolish of me) :-D
Thanks man.
1 to 5 of 5