Welcome Guest, Not a member yet? Register   Sign In
My browser switch to UTF8 after having posted data
#1

[eluser]Unknown[/eluser]
Hi, this is my very first message and I'm new to CI.

My problem is as exposed in the title, my browser displays very well my web pages, full-filled with many database informations BUT... when I submit a form, even if CI send back to me the correct informations, my browser switch to UTF-8. As a result, all characters with accents appears with some dummy symbols. But the worst is that if I take a look at the source code, the letters are well displayed, with accents. I suppose that the problem comes from the headers sent by CI. I tried to add a charset definition within my view but it doesn't seems to work. If someone could help me to solve this problem it would be great.

About the informations I can provide :
- mySQL tables are encoded in latin1_general_ci
- mySQL connection is done with utf8_general_ci

Thanks for your help
#2

[eluser]Unknown[/eluser]
Hello

I've a similar problem
My pages are encoded with :
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
But each time I submit datas with accents or special characters, they're encoded in UTF8 (and stored in UTF8).




Theme © iAndrew 2016 - Forum software by © MyBB