Welcome Guest, Not a member yet? Register   Sign In
Collation problem in Code Ingniter
#1

[eluser]Unknown[/eluser]
Hello,

i have problem, in DB i set utf8_unicode_ci collation, and print all letters, but the content which is not from database does not show the following letters : ŠĆČŽĐ..

content charset: charset=UTF-8.

please help me...
#2

[eluser]vitoco[/eluser]
i've tried thos chars in one of my views and it shows perfectly, so i'll give you my settings,

config.php
Code:
$config['charset'] = 'UTF-8';

html view :
Code:
<meta http-equiv="content-type" content="text/html;charset=utf-8" />

Also...you must save all files ( controllers/models/views/etc...) in utf8 without BOM ( that's another common problem ).

Hope it helps you.

Saludos
#3

[eluser]InsiteFX[/eluser]
Also make sure you set the database to that collation when you create it.
#4

[eluser]PhilTem[/eluser]
You need to also have the database connection charset set to utf-8 (look into APPPATH . config/database.php)
#5

[eluser]Unknown[/eluser]
Thanks, it works with UTF-8 without BOM.

once again, THANKS !




Theme © iAndrew 2016 - Forum software by © MyBB