CodeIgniter Forums
Polish marks in database - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: Polish marks in database (/thread-21807.html)



Polish marks in database - El Forum - 08-21-2009

[eluser]Przemek[/eluser]
Hi i try put polish marks in db but i have problem.
I set via phpmyadmin coding utf8_polish_ci, and i can put them in phpmyadmin no problem and they look ok in phpmyadmin but on web site i have ąąąą.
in CI config file i have setup like that:
Code:
$db['default']['char_set'] = "utf8";
$db['default']['dbcollat'] = "utf8_polish_ci";
What should i change to set it right ??


Polish marks in database - El Forum - 08-21-2009

[eluser]GSV Sleeper Service[/eluser]
try adding this to your html, in the head section
Code:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
also, you may need to set the content type in your web server config


Polish marks in database - El Forum - 08-21-2009

[eluser]davidbehler[/eluser]
Phil and I both wrote articles about that topic:

http://ellislab.com/forums/viewthread/126518/

Maybe that might help you.


Polish marks in database - El Forum - 08-21-2009

[eluser]Przemek[/eluser]
thanks i change php.ini and workks fine