On Thu, 20 Nov 2003, Christophe Chisogne wrote: Gedanken wrote: > the content returned by my agent always fail to find the euro symbol. As far as encoding is concerned, I can says this about the euro symbol (monetary symbol for Europe since 1/1/2002), for 8bit and wide chars: Thanks for the great info! Sadly however it did not help =/
As far as I can tell, I am doing everything correctly. The machine that is not behaving well (perl 5.8.0) has all the correct locales installed, seen by checking locale -a. i manually set it in perl 5.8.0, which seems to be a necessary thing (apparently perl 5.6.1 did it for you) using code like use POSIX qw(locale_h); setlocale(LC_CTYPE, "en_US.iso885915"); and im using the specific iso-8859-15 which has the euro... and im still getting garbage =/ my euro looks like € except if i copy and paste that and try to pattern match on it it fails =) This isnt a display issue, as i dont care that i cant see the euro sign per se. Im just trying to pattern match on my mechanize agent-> content to know if i see a page that has euros on it =/ Im kinda stuck. both boxes seem to have the right locales installed, both boxes run the same code, but the box with perl 5.8.0 is giving bad results. Doing web searches and finding code exampless of how to specifically tell perl 5.8.0 to use a given locale such as iso-8859-15 looked very promising but so far no luck =( matt
