Marco Sulla <marco.sulla.pyt...@gmail.com> writes: On Mon, 9 May 2022 at 19:53, Chris Angelico <ros...@gmail.com> wrote: ... Nevertheless, tail is a fundamental tool in *nix. It's fast and reliable. Also the tail command can't handle different encodings?
It definitely can't. It works for UTF-8, and all the ASCII compatible single byte encodings, but feed it a file encoded in UTF-16, and it will sometimes screw up. (And if you don't redirect the output away from your terminal, and your terminal encoding isn't also set to UTF-16, you will likely find yourself looking at gibberish -- but that's another problem...) -- https://mail.python.org/mailman/listinfo/python-list