Re: PHP garbled problem, UTF-8 (garbled), very full explanation and solution.
1. to create a database and data table
create a database by phpMyAdmin. E]
when the data table is created: if this field is in Chinese, you need to set "collation" to "utf8_general_ci",
if the field is to store English or number, the default is right.
corresponding SQL statements, such as
[code]CREATE TABLE `test` (
`id` INT NOT NULL) After that:
[hide]$connection = mysql_connect ($host_name, $host_user, $host_pass);
add two rows:
[code]
mysql_query (