- So I have a bunch of MySQL tables who's varchar fields are utf8_general_ci
- The default_charset for php is utf8
- Lastly, i set the charset to utf8 in my html header <meta charset="UTF-8">
The text in this database is written in several different languages from English to Chinese.
A lot of the 'e's have accents over them and they use funky quotes.
With no fluff, these special characters are all output to the screen as a question mark in a black diamond (except 2).
By simply wrapping the variables in utf8_encode($string) all is well... Again except for those 2.
First question: Why do I need to use utf8_encode if everything is already set that way?
Second question: Several entries use ♀ and ♂ (they're stored in the database just like that). These show up as simple question marks (no black diamond). It does not matter what I do to them, they will not change. I've tried every possible combination of utf8_encode, utf8_decode, htmlspecialchars, and htmlspecialchars_decode. Nothing. The ONLY solution is to change the database entry to use ♀ for ♀ for example, then without any fluff it is output right. Why?
 
     
     
    