in reply to Using encoding
Hi, thanks for the answers. I'm actually thinking that I got the question wrong now though.
I think the input is text. The original input came with a £ sign, but this is now ascii text, possibly extended. But I can't work out what the '£' sign has been translated into.
It's appearing as ¶œ in notepad.
I have tried:
my $character = ord("¶œ"); $lastitem =~ s/$character/Pounds/g;
This still isn't getting it. I think I must be approaching this totally wrong. The text seems to be consistently representing the pound symbol with a character, or a number of characters, and I don't know how to isolate that.
What tools should I be looking at?
Thanks for your help - sorry for making a meal out of the question.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using encoding
by choroba (Cardinal) on Jan 14, 2013 at 11:38 UTC | |
|
Re^2: Using encoding
by nikosv (Deacon) on Jan 14, 2013 at 12:29 UTC | |
by MorayJ (Beadle) on Jan 14, 2013 at 12:37 UTC | |
by nikosv (Deacon) on Jan 14, 2013 at 12:56 UTC | |
by MorayJ (Beadle) on Jan 14, 2013 at 18:03 UTC |