Re:Mercurial’s journey to and reflections on Python 3
by takeda on Tuesday January 14, 2020 @01:08PM
(#22047458)
Yes, and using ISO-8859-1 is the way to handle them without issues. You will never get error when decoding it that way. If you are using UTF-8 there are character combinations that are invalid.
If you want to handle all headers, you have to be prepared to just get binary data.