brown.jeff
-
Posts
2 -
Joined
-
Last visited
Posts posted by brown.jeff
-
-
I am working through the example-message board in chapter 17. I am having a problem displaying foreign language fonts on my web browser. For example, the Chinese characters are all questions marks when I view the message board in FireFox. However, when I view the form submissions in PhpMyAdmin, the Chinese/Japenese characters display properly. All of the files were saved as UTF-8. Thanks.
Ch. 17 Charset Question
in PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (4th Edition)
Posted
Antonio,
Thank you! I found this code on the PHP Manual link you provided and it fixed the problem.
/* change character set to utf8 */
if (!mysqli_set_charset($dbc, "utf8")) {
printf("Error loading character set utf8: %s\n", mysqli_error($dbc));
} else {
printf("Current character set: %s\n", mysqli_character_set_name($dbc));
}