mlsmithjr / transcoder

Python wrapper for ffmpeg for batch and/or concurrent transcoding
GNU General Public License v3.0
117 stars 27 forks source link

handle invalid UTF-8 more cleanly - replacement character #18

Open slippycheeze opened 4 years ago

slippycheeze commented 4 years ago

This updates the UTF-8 decoding in pytranscoder to treat non-UTF-8 output without error: it replaces invalid characters with the Unicode REPLACEMENT CHARACTER U+FFFD.

These characters only occur in "user"-supplied metadata in media, such as title, series, or encoder tags, so there is little to no risk of loss of any useful information in the change.