Jump to content


Photo

How do I stop these characters showing up ----> �


  • Please log in to reply
5 replies to this topic

#1 sambib

sambib
  • Members
  • PipPipPip
  • Advanced Member
  • 35 posts

Posted 29 March 2006 - 03:46 AM

Hi I have a cms which gets content and displays it in php pages and I can't suss out how get rid of these types of characters � (instead of apostrophes, single quotes or dashes etc).

I use addslashes before inputing the data- $d = addslashes($_POST['content']);

and I uses stripslashes when displaying the data

I've set magic quotes to off or on it doesn't seem to make a difference....?

any clues greatly appreciated...

#2 AV1611

AV1611
  • Members
  • PipPipPip
  • Advanced Member
  • 997 posts

Posted 29 March 2006 - 01:07 PM

I may be wrong, but I THINK they happen because the characters are not what you think they are... let me give an example, then you can tell me I'm wrong...

when you do " in m$ word, it changes it the those funny " that are different when you start the quote than when you end the quote, like the first ones are upside down or whatever. I think that is what you are seeing... I have dealt with them in the past with str_replace()


#3 sambib

sambib
  • Members
  • PipPipPip
  • Advanced Member
  • 35 posts

Posted 30 March 2006 - 04:02 AM

[!--quoteo(post=359646:date=Mar 29 2006, 11:07 PM:name=AV1611)--][div class=\'quotetop\']QUOTE(AV1611 @ Mar 29 2006, 11:07 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
I may be wrong, but I THINK they happen because the characters are not what you think they are... let me give an example, then you can tell me I'm wrong...

when you do " in m$ word, it changes it the those funny " that are different when you start the quote than when you end the quote, like the first ones are upside down or whatever. I think that is what you are seeing... I have dealt with them in the past with str_replace()
[/quote]

I changed the charset of my pages to charset=utf-8 and it seems to have done the trick...


#4 JADASDesigner

JADASDesigner
  • Members
  • PipPipPip
  • Advanced Member
  • 40 posts
  • LocationDeep within my creative process

Posted 09 October 2008 - 02:22 PM

I did change my charset to utf-8, and I am still getting issues.  I get â€, on some pages and  on others.  Some of the chars I find hiding in empty spaces.  I just delete the spaces, and sometimes they go away, but I have NO idea what is going on here...
www.jadasdesign.com
www.jamz1019.com
www.peopleprotection.com/Disguised_Pepper_Spray

#5 JADASDesigner

JADASDesigner
  • Members
  • PipPipPip
  • Advanced Member
  • 40 posts
  • LocationDeep within my creative process

Posted 09 October 2008 - 02:27 PM

http://jamz1019.com That is where they are.  They are all over the place on various pages.
www.jadasdesign.com
www.jamz1019.com
www.peopleprotection.com/Disguised_Pepper_Spray

#6 JADASDesigner

JADASDesigner
  • Members
  • PipPipPip
  • Advanced Member
  • 40 posts
  • LocationDeep within my creative process

Posted 29 October 2008 - 05:40 PM

I have found that the only place this happens is on the host servers they use.  It seems to work fine everywhere else on the planet, so I am switching them to different servers...
www.jadasdesign.com
www.jamz1019.com
www.peopleprotection.com/Disguised_Pepper_Spray




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users