Welcome Guest, Not a member yet? Register   Sign In
Accented character doesn't display correctly
#1

[eluser]samus535[/eluser]
Hi Everyone,
I'm really sorry to ask this to you but I've been looking over the net for a couple of hours and tried a couple of solution but nothing seems to work...

My problem is that I have some accented characters stored in my database and when I display them on my web page they doesn't show properly...

I've tried to :
Code:
1-
mysqldump the tables and the data (while in latin1)
dump the database
set the default charsets to UTF8 in /etc/my.cnf
restart the mysql
create the database again with the right charset and collation
dump the file back into it

Code:
2-
save my file in the UTF8 encoding (with notepad++)

Code:
3-
change the charset/collation on my tables

If anyone has any idea to fix this issue, it would be VERY appreciated.

Thank you very much and have a nice day
--Samus535
#2

[eluser]InsiteFX[/eluser]
Code:
// HTML

<head>
    <meta charset="utf-8" />
</head>

// php.ini
default_charset = "utf-8"

// CI Database should be utf8_general_ci or utf8_unicode_ci - database needs to be loaded.

mysql_set_charset('utf8', $this->db->conn_id);
#3

[eluser]samus535[/eluser]
Thank you SOOOO much !!!!

The issue was my php.ini file.

Thanks again :coolsmile:

--Samus535




Theme © iAndrew 2016 - Forum software by © MyBB