Possible Duplicate:
Encoding issue: £ pound symbol appearing as <?> symbol
I am doing some basic echo statements and when i use echo “£” it puts a capital A before the pound sign any ideas why?
echo ("£"):
output = A£
the A has a symbol above.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are several ways to do this pragmatically:
Another way to do this more “manually” would be to save your files in UTF-8 encoding.
See here for more information.
Here’s a screenshot of the results:
As stated by primatology, if you’re going to be ouputting to HTML, make sure to include the proper encoding header for HTML. This should be inserted between your
<head>tags.