in reply to Even more puzzled than before

perl -CSDA t.pl `cat accents_utf8`

Why are you passing the contents of accents_utf8 in the command line instead of having your script read the file directly? This is adding another layer processing, so more uncertainty.

Replies are listed 'Best First'.
Re^2: Even more puzzled than before
by kzwix (Sexton) on Jun 23, 2014 at 07:36 UTC
    Well, the reason behind this was to test the behavior of command-line arguments. So, as my terminal would have typed "latin-1" accents, and not UTF-8 sequences, I used the output from the command to get a UTF-8 string.
      This makes a lot of sense.