php weird characters

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
YoussefSiblini
Forum Contributor
Posts: 206
Joined: Thu Jul 21, 2011 1:51 pm

php weird characters

Post by YoussefSiblini »

Hi,
I am having a problem with some characters that showing in my webpage but I can't find them in my code.
If you go to this page http://ab-mxr.com/abmxrredtest.php and click add to cart then in the cartHSBC.php page you will see this:
"" in the middle of the page and "Â" before every price number.

They are no where in that page code how can I get rude of them.

Youssef
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: php weird characters

Post by social_experiment »

It could be a charset that doesn't support the characters that you wish to display. What is your current charset?
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
YoussefSiblini
Forum Contributor
Posts: 206
Joined: Thu Jul 21, 2011 1:51 pm

Re: php weird characters

Post by YoussefSiblini »

Thank you,
This may sound stupid but How do you know what kind is my charset?
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: php weird characters

Post by social_experiment »

<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
This is what defines your charset, it is usually located within the head of your document.
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
YoussefSiblini
Forum Contributor
Posts: 206
Joined: Thu Jul 21, 2011 1:51 pm

Re: php weird characters

Post by YoussefSiblini »

There is none, shall I put one?
YoussefSiblini
Forum Contributor
Posts: 206
Joined: Thu Jul 21, 2011 1:51 pm

Re: php weird characters

Post by YoussefSiblini »

Thank you :) that worked when I put one thankssssssssssssssssssssssssssssssssssssssssssssss
Post Reply