rahul_dev
(Raoul Dev)
December 19, 2010, 9:43am
1
Hello guys, i need help in displaying foreign characters. I’m extracting data from mysql database. but some characters are displayed like this: Un fusil de chasse n’est pas � mettre � la port�e de tous. Even if i echo the characters on the page i still get the same result! my page also contains the header for utf-8.Any1 knows wat to change?
tri
(tri - Tommy Riboe)
December 19, 2010, 10:07am
2
Hello guys, i need help in displaying foreign characters. I’m extracting data from mysql database. but some characters are displayed like this: Un fusil de chasse n’est pas � mettre � la port�e de tous. Even if i echo the characters on the page i still get the same result! my page also contains the header for utf-8.Any1 knows wat to change?
This may help
http://www.yiiframework.com/wiki/16/how-to-set-up-unicode/
/Tommy
iivano71
(Igor Zg1987)
December 19, 2010, 11:47am
3
Ive had i same problem, you have to setup your model in ut8 or you view in ut8
and in main.php
add charset
'db'=>array(
'charset' => 'utf8',
),
rahul_dev
(Raoul Dev)
December 21, 2010, 6:15am
4
Ive had i same problem, you have to setup your model in ut8 or you view in ut8
and in main.php
add charset
'db'=>array(
'charset' => 'utf8',
),
it was already set by default, still doesnt works!
rahul_dev
(Raoul Dev)
December 21, 2010, 6:17am
5
even if i do a simple echo i get the same result, so i know its not my db!
mikl
(Mike)
December 21, 2010, 8:40am
6
Did you read the document, tri suggested? You need to check all described areas, not only the connection charset.