I have an issue with certain special characters not showing up when I output them to a web page,
When I view the database, which has the following:
MySQL charset: cp1252 West European (latin1)
MySQL connection collationUTF-8 Unicode (utf8)
When I view the MySQL database in PhpMyAdmin, I can see the German characters as well as some ™ (Trade Mark) symbols.
When I output the contents of the database to a UTF-8 encoded webpage, I get the German characters, but the Trade Mark symbols show as an "unknown" placeholder.
I've tried both:
echo utf8_encode($row['webinfo']);
and
echo htmlentities($row['webinfo']);
What am I doing wrong?
When I view the database, which has the following:
MySQL charset: cp1252 West European (latin1)
MySQL connection collationUTF-8 Unicode (utf8)
When I view the MySQL database in PhpMyAdmin, I can see the German characters as well as some ™ (Trade Mark) symbols.
When I output the contents of the database to a UTF-8 encoded webpage, I get the German characters, but the Trade Mark symbols show as an "unknown" placeholder.
I've tried both:
echo utf8_encode($row['webinfo']);
and
echo htmlentities($row['webinfo']);
What am I doing wrong?