I have a problem displaying "€" in my html...
- My database field has collation "utf8_general_ci"
I fetch the data like that into an javascript variable:
$query = mysqli_query($con, "SELECT * FROM Table WHERE Id = '1'"); $data = mysqli_fetch_assoc($query);
$data = json_encode(utf8_encode(($data["Field"])));
As I want to echo $data... I get Umlauts see "ÄüÖü" and other chars like " ', #@&" etc. BUT I DON'T SEE THE € SIGN..... it get's displayed as a ? ( Not that in a rectangle... just a normal ?)
Can anyone help please?
Btw, that's my header:
header("Content-Type: text/html; charset=utf-8");