> LC_ALL=fr_FR.UTF-8 > $ ./test.pl > out > $ file out > out: ISO-8859 text > $ Oh. Hang on. Perl ALWAYS magically autopromotes things to Latin-1 if you're not both careful and explicit. perluniintro starts to explain the problem.