sarugaku/vistir

Improve output decoding and translation to fail gracefully via replacement

techalchemy opened this issue · 0 comments

decode_for_output should attempt to decode properly before failing gracefully and replacing the target characters.

We should also accept translation maps in this function to allow replacement of specific non-ascii characters when we are dealing with failed translations.