Welcome Guest, Not a member yet? Register   Sign In
Unicode doesn't be inserted into DB
#1

[eluser]cleansugar[/eluser]
CodeIgniter recent version:

In database.php, utf8 and utf8_general_ci are setted.

in model.php

function insertData($idname, $password)
{
$data = array('id' => '한글', 'password' => 'password');
$this->db->insert('mydb', $data);
}

In database '???', 'password' are inserted

How can I insert Unicode into database?
#2

[eluser]TheFuzzy0ne[/eluser]
Welcome to the CodeIgniter forums!

Try utf8_unicode_ci instead.
#3

[eluser]Colin Williams[/eluser]
Are you certain that this is what the database is storing? Or is it that whatever you are using to inspect the data is not UTF8?
#4

[eluser]cleansugar[/eluser]
[quote author="TheFuzzy0ne" date="1237225192"]Welcome to the CodeIgniter forums!

Try utf8_unicode_ci instead.[/quote]

Doesn't work, Same result.

Thank you.
#5

[eluser]cleansugar[/eluser]
[quote author="Colin Williams" date="1237225907"]Are you certain that this is what the database is storing? Or is it that whatever you are using to inspect the data is not UTF8?[/quote]

Exact ??? in latin charset.




Theme © iAndrew 2016 - Forum software by © MyBB