Dear Karl, Thank you for your help. I pasted the 'use utf8;' statement. However, this does not improve the output on my machine. I am using a Mac (10.6.4) with Perl 5.8.8 and 5.12.1. I pasted below the outputs I got. You can see that the accented characters are not processed and the quote is wrongly encoded by Perl.
Can you tell me what is your Perl version and if you are using Linux or a Mac, what is your locale? You get it with the command locale. Thank you for your help! Pierre ---- pierre:ch04 pierre$ perl token_perl_sav.pl extrait.txt ? Tjuvg mmare ! ? s ga skatorna och se ut som samvetet sj lvt . ? Vi ro polisbetj nter , vi . Hit med tjuvgodset ! ? ? , tyst , era rackare ! Jag r g rdsfogden . ? ? Just den r tta ! ? h na de . ---