Jump to content

Decode special characters


pkrtech

Recommended Posts

And I cannot get them to be converted to HTM unless I use eregi_replace

can anyone tell me how to ?  Here is what I cant find a function to convert automatically.

I have been using urldecode()  as well as htmlentities_decode  but as I am going through more text this weird crap keeps popping up. Is there something I am missing ? Or do I have to manually eregi_replace each on that pops up ?

[code]
'

â??

Source = …  showing through html = …

'

"

Source  =  »      showing through html = »

[/code]

There is alot more variations I am finding. any ideas ?

Link to comment
https://forums.phpfreaks.com/topic/19480-decode-special-characters/
Share on other sites

Are you using urlencode and htmlentities together? Remove urlencode. As that could be the problem. Just use htmlenties to convert the html characters to their html entity equivilant. Also post your actuall code here too. SO I can see how your script process the data.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.