Depending on how information is printed on the screen, logged_subprocess might fail to decoding a byte sequence as UTF-8.
To handle this issue, we simply replace characters that cannot be decoded with a replacement character. The replacement character is typically U+FFFD (�). This can be useful to ensure that all characters are displayed, even if some of them are corrupted.
Description
Depending on how information is printed on the screen,
logged_subprocess
might fail to decoding a byte sequence as UTF-8.To handle this issue, we simply replace characters that cannot be decoded with a replacement character. The replacement character is typically U+FFFD (�). This can be useful to ensure that all characters are displayed, even if some of them are corrupted.