Re: DOCTYPE



..oO(Dikkie Dik)

By the way, if you want a nice introduction on the matter, here's a good
start:

http://www.joelonsoftware.com/articles/Unicode.html

... and beware of onions ;) There is one thing I strongly disagree with
the above site: the remark that character encodings would be easy. They
are not. Especially if you take some quirky behaviours of Windows and
MySQL into account.

IMHO it _can_ be easy - you just have to do it consistently.
With UTF-8 you have to make sure that

* your data is stored as UTF-8 in the DB
* correctly transfered to your script (SET NAMES utf8)
* correctly transfered to the browser (header())

In short: UTF-8 all the way from the source to the reader.

Micha
.


Quantcast