CodeIgniter Forums
Unicode Character Set Issues with Database - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Unicode Character Set Issues with Database (/thread-17857.html)



Unicode Character Set Issues with Database - El Forum - 04-17-2009

[eluser]section31[/eluser]
Everytime i pull stuff from the db, utf8 characters are all screwed, yet when i do native php/mysql chars work fine.

View Sample here.
http://dev.creativelink.us/ci/

You can view the source code for this here.
http://dev.creativelink.us/ci/index.php/welcome/source


Unicode Character Set Issues with Database - El Forum - 04-17-2009

[eluser]pistolPete[/eluser]
Please post your settings of

Code:
$config['charset'] = ?
$db['default']['char_set'] = ?
$db['default']['dbcollat'] = ?

What is the encoding of your database?


Unicode Character Set Issues with Database - El Forum - 04-20-2009

[eluser]section31[/eluser]
Those are all set to utf8.

CI seems to be doing something to unicode data when it pushes it in the db and pulls it out from the db. If i post utf8 chars natively, I can only pull them out natively and the same goes if i push stuff into the db using CI.