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.
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.
There are several ways to do this pragmatically:
<?php
echo chr(163);
printf("%c", 163);
echo "£"; //preferred for HTML
?>
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.
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 
    
    You have to encode the php file as UTF-8 or use
£
 
    
    Make sure your HTML page is marked as UTF-8 (unicode charset). For bulletproof support, place this in your head:
<meta charset="utf-8"> 
You should also save the file with a UTF-8 encoding—most text editors have a built-in capability for this.
If on Apache, you can also send the UTF-8 encoding in the Content-Type header by adding this to a .htaccess:
AddDefaultCharset utf-8
