webguync Posted September 3, 2009 Share Posted September 3, 2009 Hi, I have some data in MySQL set to Collation UTF_general_ci. This data is japanese characters and in my PHP page which displays the MYSQL data the data displays as ????? I did some research and added the following to my HTML code, but wasn't sure if there was anything else I needed to do PHP wise. <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <?php header('Content-Type: text/html; charset=utf-8'); ?> Link to comment https://forums.phpfreaks.com/topic/173026-webpage-displays-japenese-characters-in-mysql-as/ Share on other sites More sharing options...
bundyxc Posted September 3, 2009 Share Posted September 3, 2009 Does it produce an error? Link to comment https://forums.phpfreaks.com/topic/173026-webpage-displays-japenese-characters-in-mysql-as/#findComment-911935 Share on other sites More sharing options...
webguync Posted September 3, 2009 Author Share Posted September 3, 2009 no, no error, bit where the Japanese characters should be displaying I am getting question marks (????????, ????????) Link to comment https://forums.phpfreaks.com/topic/173026-webpage-displays-japenese-characters-in-mysql-as/#findComment-911937 Share on other sites More sharing options...
webguync Posted September 3, 2009 Author Share Posted September 3, 2009 I read in another forum to try this, but I get errors when trying. $rpcQuery("SET NAMES 'utf8'", $db); the errors are: Notice: Undefined variable: rpcQuery in path_to_file on line 8 Fatal error: Call to undefined function: () in path_to_file on line 8 Link to comment https://forums.phpfreaks.com/topic/173026-webpage-displays-japenese-characters-in-mysql-as/#findComment-911962 Share on other sites More sharing options...
play_ Posted September 3, 2009 Share Posted September 3, 2009 This may help http://forums.mysql.com/read.php?52,164919,165632#msg-165632 Link to comment https://forums.phpfreaks.com/topic/173026-webpage-displays-japenese-characters-in-mysql-as/#findComment-912035 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.