It fails to convert, so I'm wondering if anyone who's had experience with this sort of thing before could offer some insight?
coopster
7:14 pm on May 17, 2010 (gmt 0)
I use utf8 in both my headers coming from the HTTP server as well as in the meta element (for pages saved to the local machine after being delivered by a web server).
Don't use htmlentities. It's unnecessary. If the euro symbol is being stored in your database or merely pasted into your code, you should be fine. Note that you should also save the document (php script) itself as having a text file encoding of UTF-8 -- and watch out for the byte order mark.
Readie
12:49 pm on May 18, 2010 (gmt 0)
Ahh, that might be where I was going wrong then. I was saving my PHP file in ANSI format.
jatar_k
1:32 pm on May 18, 2010 (gmt 0)
remember everywhere has to be the same
input page, db, output page
most errors are mismatches at one of the points. I had that same issue with save format last month, there are so many points it is easy to miss one.
Readie
3:42 pm on May 18, 2010 (gmt 0)
OK, this is very wierd. When I use the keyboard shortcut (Alt Gr + 4) for the euro symbol, and try and echo that directly, it goes all mashed up.
If I echo € and copy that, then paste that into an echo, it comes out fine.