Posted by Benzari.Alex@gmail.com on 01/24/06 20:49
I was fighting with this problem today(i tested romanian deutch and
russian characters).
The main requiremnts are:
1. Your document must be UTF-8
2. Your database table or column must be UTF-8
3. Before calling any queries you should execute the following query
SET NAMES 'utf8'
this will set conection to mysql in utf-8 mode if it wasn't set by the
default MySql config.
4. Just Insert your data in the table and then you will be able to
select it.
Hope this will help.
P.S. I tested all this stuff on PHP 5 and Mysql 4.1 so if your config
is different sorry.
[Back to original message]
|