Weird behavior of encoding & open pragmas

[email protected] (Marcin 'Qrczak' Kowalczyk)
Newsgroups perl.unicode
Message-ID <1092760148.1156.16.camel@qrnik>
$ perl -e 'use encoding "ISO-8859-2"; use open ":encoding(ISO-8859-2)"; print ord($ARGV[0]), chr(260), $ARGV[0], "\n"' Ą
"\x{00a1}" does not map to iso-8859-2 at -e line 1.
260Ą\x{00a1}

I don't understand it: ord($ARGV[0]) is 260, chr(260) can be printed,
yet $ARGV[0] cannot be printed?

Which part of Perl performs the recoding of @ARGV here?

-- 
   __("<         Marcin Kowalczyk
   \__/       [email protected]
    ^^     http://qrnik.knm.org.pl/~qrczak/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.