1,105,409 Community Members

How to prevent � symbols in php ?

Member Avatar
rayidi
Junior Poster in Training
85 posts since May 2011
Reputation Points: 3 [?]
Q&As Helped to Solve: 4 [?]
Skill Endorsements: 0 [?]
 
0
 

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..

Member Avatar
pritaeas
mod_pritaeas
11,315 posts since Jul 2006
Reputation Points: 1,420 [?]
Q&As Helped to Solve: 1,835 [?]
Skill Endorsements: 156 [?]
Moderator
Featured
Sponsor
 
0
 

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

Member Avatar
Msanches
Light Poster
36 posts since Jan 2013
Reputation Points: -3 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
-2
 

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

Member Avatar
rayidi
Junior Poster in Training
85 posts since May 2011
Reputation Points: 3 [?]
Q&As Helped to Solve: 4 [?]
Skill Endorsements: 0 [?]
 
0
 

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

Member Avatar
pritaeas
mod_pritaeas
11,315 posts since Jul 2006
Reputation Points: 1,420 [?]
Q&As Helped to Solve: 1,835 [?]
Skill Endorsements: 156 [?]
Moderator
Featured
Sponsor
 
1
 

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

Member Avatar
rayidi
Junior Poster in Training
85 posts since May 2011
Reputation Points: 3 [?]
Q&As Helped to Solve: 4 [?]
Skill Endorsements: 0 [?]
 
0
 

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
Member Avatar
pritaeas
mod_pritaeas
11,315 posts since Jul 2006
Reputation Points: 1,420 [?]
Q&As Helped to Solve: 1,835 [?]
Skill Endorsements: 156 [?]
Moderator
Featured
Sponsor
 
0
 

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

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