khalid Posted June 15, 2008 Share Posted June 15, 2008 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. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted June 15, 2008 Share Posted June 15, 2008 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. Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted June 15, 2008 Share Posted June 15, 2008 I guess the odd symbol for the pound sign has something to do with character encoding somewhere along the line. But I can't see anything obviously amiss. You could swap it to the html character code, rather than the symbol though: £ Quote Link to comment Share on other sites More sharing options...
webbiedave Posted June 15, 2008 Share Posted June 15, 2008 As mentioned above, you can use £ or look into sending charset=ISO-8859-1 in the header. You can set this header through the web server, PHP or MySQL. For more info, have a look at: http://wiki.joyent.com/shared:kb:change-charset Quote Link to comment Share on other sites More sharing options...
khalid Posted June 15, 2008 Author Share Posted June 15, 2008 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. Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted June 16, 2008 Share Posted June 16, 2008 Just open up the index.php file and do a search for a pound sign replacing it with £ ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.