Chinese characters in PHP

Client page:

#
#
#

#
#
#
#
#
#

Server page:

php $name = $_POST[‘programme_name’];

php mysql_query(“SET character_set_client=utf8”,$con);
phpmysql_query(“SET character_set_connection=utf8”, $con);
phpmysql_query(“SET character_set_results=utf8”, $con);

php $query = “Select * from programme where Programme_name Like '%”.$name."’";

Problem is even if there is that chinese text in the database results is ZERO(none). If I print the POST value $name it displays the correct text with the chinese characters.

but if i store it in a variable, such as:

php $name= “valuevalue ( 官话 )”;
php $query = “Select * from programme where Programme_name Like '%”.$name."’";

It produces results. how could this be, in POST it doesn’t but static value declaration it does? My OS is XP SP3.

Is there a problem in the “internal” representation of chinese characters if it is in POST? Do I need to set something in my OS to support chinese representation?

Sponsor our Newsletter | Privacy Policy | Terms of Service