Welcome Guest, Not a member yet? Register   Sign In
UTF-8 is making me lose my mind
#1

[eluser]Geomancer[/eluser]
I have tried everything, from a lot of websites and this great forum:

-Saving every file to UTF-8
-Using this header:
Code:
header('Content-Type: text/html; charset=utf-8');
-Using the tag:
Code:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-Every database, table and column is utf8_unicode_ci, as in the database.config file.
-In .htaccess UTF-8 is default.

I have simplified everything and I am usign a single controller/view to make an insert into the DB, with special characters, which show ok in the browser, but are inserted like this: á é í ó ú ñ ¿

If I change the charset in the meta tag to iso, the characters are inserted ok in the db, but they show bad in the browser.

If I utf_encode the strings before inserting, they insert ok, but I will have to decode everything and It is not the point, it should work fine.

I really don't know what else to do, any help will be much appreciated.

Edit: I am using Doctrine, could this be the reason?


Messages In This Thread
UTF-8 is making me lose my mind - by El Forum - 05-21-2010, 07:43 AM
UTF-8 is making me lose my mind - by El Forum - 05-21-2010, 07:48 AM
UTF-8 is making me lose my mind - by El Forum - 05-21-2010, 08:15 AM
UTF-8 is making me lose my mind - by El Forum - 05-21-2010, 09:02 AM
UTF-8 is making me lose my mind - by El Forum - 05-21-2010, 09:30 AM
UTF-8 is making me lose my mind - by El Forum - 07-26-2010, 10:59 PM
UTF-8 is making me lose my mind - by El Forum - 10-03-2010, 06:00 AM
UTF-8 is making me lose my mind - by El Forum - 11-28-2010, 04:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB