Welcome Guest, Not a member yet? Register   Sign In
Problem trying to save ñ, á on Database
#1

[eluser]Unknown[/eluser]
Hi all, im starting on CI, and today receive my first problem Tongue, i try to save an string into my db :

"Descripción en Español" shows a good query string in debugger, but when i see my database, the string is cut, and only save : "Descripci".

if i quit the "ó" char, the string saved is "Descripcion en Espa".

I try to fix that without luck, someone have the answer :-P , well guys, thanks a lot!.

Code:
//My database in codeigniter
$db['default']['char_set'] = "utf8";
$db['default']['dbcollat'] = "utf8_general_ci";

//My database in MySQL its the same
utf8_general_ci

//html charset
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
#2

[eluser]Unknown[/eluser]
Guys, i find the problem, its in my html charset, should be changed to UTF-8 too, sorry for the question, its a newbie question Tongue THX ANYWAY!!!!

PD and sorry for my english.




Theme © iAndrew 2016 - Forum software by © MyBB