Hi guys,
Just built a site using Evo.
Hosted on Apache, PHP 5.
I have a class I wrote that pulls an array of data out of the DB and displays it front end.
One of the fields in the DB is straight HTML.
When I display this frontend I get some unusual results.
The Euro symbols, which are in the DB as €
Display on one page as: %u20AC
And on another page as €
Now the weird thing is that both pages uses the same header chunk, where the encoding is set to:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
I know %u20AC is unicode, but I can’t figure out why it is coming out like that on my website.
When I view the source, my € is there fine?
Any ideas...
Thanks in advance...
J
erm...think I posted this in the wrong board!
-
MODX Staff
- 10,725 Posts
Sounds like the data is stored in a UTF8 collation in the database, instead of latin1.