Welcome Guest, Not a member yet? Register   Sign In
Problem with the encoding echoing from the db
#1

[eluser]ven_dev[/eluser]
I have a database storing the information to utf8-unicode-ci
My data is in Cirilyc.
Everything in the database is OK.
I enter information with a form to the db and everything is fine.
However when I try to get some data form the db,when I echo it I get this -> Венцислав Попов.
How can I repair this.
In my header I have
<meta http-equiv="content-type" content="text/html; charset=uff-8"/>
My CI config is:
$config['charset'] = 'UTF-8';
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-'; (adding а-яА-Я,do not resolve the problem)

Can you help me ?! Wink
#2

[eluser]craig.hoog[/eluser]
Is this a typo:
Code:
<meta http-equiv=“content-type” content=“text/html; charset=uff-8”/>
Or does yours say uff-8 instead of uft-8?
#3

[eluser]ven_dev[/eluser]
OMG man... thanks so much,I was never going to see this!
How stupid I am... I tried 100 things and was going to take it off.
Thanks alot! Smile
#4

[eluser]craig.hoog[/eluser]
[quote author="ven_dev" date="1336563056"]OMG man... thanks so much,I was never going to see this!
How stupid I am... I tried 100 things and was going to take it off.
Thanks alot! Smile[/quote]

Hopefully that fixes the issue Smile
#5

[eluser]ven_dev[/eluser]
yep Big Grin




Theme © iAndrew 2016 - Forum software by © MyBB