I have a database which I fill directly in PhpMyAdmin. There are some special characters like é in it. In PhpMyAdmin, they show perfectly. When I convert them to PDF with FPDF/PHP they show perfectly as well. When I want to show them in HTML (with PHP), they become diamond shapes with a question mark in it.
I know this has something to do with charsets and collation, but I'm a total noob on that matter. My database has collation latin1_swedish_ci
and I want to keep it that way. My page has <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
in the header, so they should be the same I think, still, I get question mark diamonds... How do I get the characters I want?
Please don't say I have to convert everything to utf-8
. I really want to keep latin1_swedish_ci
. I tried charset=utf-8
in the header and converting one of the fields in my database to utf8_general_ci
, but that field didn't show up right either, so something else must be wrong...