1.11M Members

How to prevent � symbols in php ?


Dear All,

I'm facing problem with the symbols while getting the data from the table.. My output contains these ( � ) type of symbols i don't know why these coming even i declared

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

Can any one having solution for this ?

Thanks in advance..


Are you sure your file's encoding is in UTF8 too?


what browser are you using? Some browsers don't care about this meta tag.


yes pritaeas, i mentioned the above line as it is....
Msanches, I'm using Mozilla firefox ( Latest version )


I did not mean the tag, the file itself has an encoding too (even without the meta tag).


pritaeas, I'm not sure.. If i removed the <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> its working fine now.. what would be the reason ?

Question Answered as of 1 Year Ago by pritaeas and Msanches

That the file itself is not in utf8 encoding, but the meta tag says it is.

This question has already been solved: Start a new discussion instead
Start New Discussion
View similar articles that have also been tagged: