Jump to content

Symbols appearing differently


khalid

Recommended Posts

Hi all,

 

I've just had www.barvacancy.com coded for me and I was playing about with it when I noticed two faults...

 

1. £ symbols appear as ?

2. ' symbols appear as \\\

 

Example: http://www.barvacancy.com/jobs/United%20Kingdom/Bristol/Supervisor/One%20Nightclub_1213529022-9914744

 

I am awaiting the coder's response to fixing this issue but I'm just wondering if anyone here can help solve the problem?

 

Your help is much appreciated,

 

Khalid.

Link to comment
https://forums.phpfreaks.com/topic/110300-symbols-appearing-differently/
Share on other sites

The \\\ is most probably caused by magic quotes. magic quotes escapes quotes automatically within $_GET, $_POST and $_COOKIE vars. I'd recommend disabling the magic quotes runtime altogether. For a simple fix you can use stripslashes function on the variable which gets the data out of your database.

 

As for the pound symbol not sure on that one.

Hi,

 

Thanks for the replies.

 

I am a total newbie at php so I'm wondering if anyone could actually direct me to the exact page and code I would need to insert? My apologies of the lack of knowledge, I am still learning. I know a little html and can understand some php but not enough to fix this.

 

Your help is appreciated,

 

Khalid.

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.