PDA

View Full Version : Character set encoding



Jacsoft
1 Jul 2008, 1:19 PM
Hello,

I have problems with non standard ascii characters displaying in the form (

krukow
1 Jul 2008, 8:37 PM
Did you check your response headers? You can use Firebug or Live HTTP Headers for firefox. Your request has:

Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7


which says that it prefers ISO-8859-1. If you are not explicitly controlling the encoding on your server it is probably using the ISO encoding.


-- Karl (http://higher-order.blogspot.com)

Jacsoft
2 Jul 2008, 1:10 PM
I figured it out. It was a problem with the database connection. So right after the connection I had to run the next 3 queries:

mysql_query("SET CHARACTER SET utf8;");
mysql_query("SET NAMES utf8;");
mysql_query("SET SESSION character_set_server=utf8;");

aragm
26 Aug 2008, 11:42 AM
Muchisimas gracias ... es justo lo que estaba buscando ...
=D>=D>=D>=D>=D>=D>=D>=D>=D>=D>=D>=D>=D>=D>=D>=D>=D>=D>=D>=D>=D>