At 12:33 pm +0000 18/2/05, David Cantrell wrote:
I doubt it very muchFirst of all iso-8859-1 does not contain the Euro sign. The character set you probably intend is Windows-1252No he doesn't, he wants iso-8859-15
If he says he wants ISO 8859 1 and he says he wants the Euro sign, then he wants ISO 8859 15 which is identical to 8859 1 but with the generic currency symbol replaced with the Euro symbol, and a few rarely used characters replaced with slightly less rarely used letters.
> but you seem to have inside information.
That's funny, so do you when you claim he probably intends some odd proprietary Microsoft thing from their legacy "Windows" operating system. Using that is dangerous both because whether the euro character is present in the character set depends on which version of windows-1252 you use, and also because software support for it is poor.
> #!/usr/bin/perl -w > use Encode; > $euro = "\x{20ac}"; > $mac = encode("MacRoman", $euro); > $cp1252 = encode("cp1252", $euro); > $latin9 = encode("iso-8859-15", $euro); > print "$mac $cp1252 $latin9";
That prints a capital-U with circumflex (I think, it's hard to see), followed by two spaces, followed by a Euro symbol, proving my point rather elegantly. Thankyou!
-- David Cantrell | Reality Engineer, Ministry of Information
If I was made in God's image, does that make God a grouchy unshaven pervert?