views:

122

answers:

2

What HTML text encoding exactly corresponds to MySQL charset "latin1"? ISO-8859-1, ISO-8859-2, ISO-8859-15, or another one?

+3  A: 

ISO-8859-1 is the official name of Latin-1.

Max Shawabkeh
+4  A: 

It's actually the same as cp1252, which is actually a Windows code page. In terms of the ISO standards, it's closest to ISO 8859-1, except that it defines a few more characters (such as the Euro symbol).

Dean Harding
You've got it the wrong way around - Latin-1 is the informal name of ISO-8859-1, while Windows-1252 is mostly the same (but not quite).
David Johnstone
That's true, but MySQL's "latin1" encoding is the same Windows-1252.
Dean Harding
Oh, that's confusing :-) You are right, as this page says: http://dev.mysql.com/doc/refman/5.0/en/charset-we-sets.html
David Johnstone
Tell me about it :)
Dean Harding