Same thing still happens. But I have been playing and discovered its fine if i replace with any ASCII under 127, but 128 and above it inserts this  before the symbol. I have also read:
"Note that characters from 128 to 255 (inclusive) are by default internally not encoded as UTF-8 for backward...
This is my code I have
package TeamSite::rayXML;
use strict;
sub removeHTML
{
my ($tags) = $_;
$tags =~ s/\<[^\<]+\>//g;
$_ = $tags;
my ($pound) = $_;
$pound =~ s/£/£/g;
$_ = $pound;
my ($amp) = $_;
$amp =~ s/&/&/g;
$_ = $amp...
Thanks Paul - Just tried editing it in Notepad but still get the same problem. My keyboard is fully set to English (UK), and I am running it locally.
Thanks again - Barney
I have some perl code that does a find and replace in an HTML document to strip out the HTML of it. It works really well except when it tries to insert a £ symobl. The code I have is:
my ($pound) = $_;
$pound =~ s/£/£/g;
$_ = $pound;
What is does is replace £ with...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.