Pound Signs Problem Solved
22 August 2002 · Last updated: 15 October 2006
Sorted out my problem with pound signs not showing in Mozilla, by filtering the text first with PHP. If your text is in various strings, you can add this code, then just repeat the second line, where $string is the name of the string:
$trans = array("£" => "£");
$string = strtr($string, $trans);
If you're just outputting the contents of a file, you can use this code instead to filter it all:
$fp2 = fopen($filename, "rb");
if (!$fp2) {echo "Unable to open remote file."; exit;}
$trans = array("£" => "£");
$contents = fread ($fp2, filesize ($filename));
$contents = strtr($contents, $trans);
print $contents;
Replace $filename with the physical name of the file you're opening. Now Mozilla will display the pound signs on your page. (Discuss...)
Useful Info
EMAIL: www.designdetector.com (replace the 1st dot with "@")
NEWSFEED: Subscribe to news of fresh posts and site updates. (RSS 2.0 compatible newsreader required.)
Disclaimer
Some links on this website lead to information provided by external services not under my control, therefore I am not responsible for the content or accuracy of the linked information.
All code examples are not guaranteed 100% free from bugs and/or mistakes. Use them at your own risk. I do not take any blame should a problem occur relating to use of code on this site given as an example for your own use. Such code has been tested and found to work for me, but I cannot vouch for other computer systems (existing now, or in the future) which it may be used on, or changes you introduce yourself based on my code.
This website is © 2008 Christopher Hester, except where separate authors are named. No part of this website may be reproduced or re-used in any way without my prior permission, except content added from separate authors (who retain the copyright on their material), examples of code, and any other content I explicity state is free to copy and make use of.
This page was last updated on 15 October 2006.