We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,394 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

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

3
Contributors
6
Replies
43 Minutes
Discussion Span
3 Months Ago
Last Updated
9
Views
Question
Answered
rayidi
Junior Poster in Training
83 posts since May 2011
Reputation Points: 13
Solved Threads: 2
Skill Endorsements: 0

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

pritaeas
Posting Prodigy
Moderator
9,310 posts since Jul 2006
Reputation Points: 1,178
Solved Threads: 1,465
Skill Endorsements: 86

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

Msanches
Newbie Poster
10 posts since Jan 2013
Reputation Points: 0
Solved Threads: 1
Skill Endorsements: 0

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

rayidi
Junior Poster in Training
83 posts since May 2011
Reputation Points: 13
Solved Threads: 2
Skill Endorsements: 0

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

pritaeas
Posting Prodigy
Moderator
9,310 posts since Jul 2006
Reputation Points: 1,178
Solved Threads: 1,465
Skill Endorsements: 86

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 ?

rayidi
Junior Poster in Training
83 posts since May 2011
Reputation Points: 13
Solved Threads: 2
Skill Endorsements: 0
Question Answered as of 3 Months Ago by pritaeas and Msanches

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

pritaeas
Posting Prodigy
Moderator
9,310 posts since Jul 2006
Reputation Points: 1,178
Solved Threads: 1,465
Skill Endorsements: 86

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0748 seconds using 2.68MB