CodeIgniter Forums

Full Version: Polish marks in database
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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 ??

El Forum

[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

El Forum

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

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

Maybe that might help you.

El Forum

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