Forum Moderators: open

Message Too Old, No Replies

Character Set problems

mysql -> php -> browser character set problems

         

kwilson172

5:13 pm on May 4, 2005 (gmt 0)

10+ Year Member



I am having a problem with the character sets ( I think ) I am reading from a mysql database with php and for some reason alot of question marks and other strange characters are being displayed. I looked at the response header and the response is in UTF-8, when I look in the database, with phpMyAdmin none of the characters show up.

tedster

5:30 am on May 5, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What about your page's charset meta tag? Also, you might check what View Source looks like.

Cyberman

8:09 am on May 6, 2005 (gmt 0)



I *think* that PHP is outputting Latin-1(ISO 8859-1) - I know that it did when I tried some PHP that has been encoded to UTF-8. Even though the server said itīs UTF-8, itīs Latin-1 in truth.

Try to switch the charset to Latin-1(in your browser) to see if itīs correct then.

As a sidenote, for some reason some of the PHP didnīt work when encoded as UTF-8.