Jump to content

webpage displays Japenese characters in MySQL as ???????


webguync

Recommended Posts

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'); 
?>

 

 

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.