2
I’m having stress problem using PHP/Mysql
When I use:
header("Content-Type: text/html; charset=UTF-8",true);
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
the HTML code is ok, but accentuated Mysql results gets.
I switch to:
header("Content-Type: text/html; charset=ISO-8859-1",true);
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
the problem reverses, the database results are ok and html is:
Next (e.g.: Next)
I’ve moved the database to Latin1 and back to UTF-8 and nothing. I tried utf8_encode(), htmlentities() and it’s still the same.
Any suggestions?
Try to user this
CREATE DATABASE mydb DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
– Lucas Caresia
@Andersoncarloswoss the information there did not solve
– igtoth
@Lucascarezia already tried with utf8 and latin1 .. same result
– igtoth