Reading the encoding of a commit can result in a Unsupported- or IllegalCharsetException. This happens when for whatever reason the commit has an encoding recorded that the system doesn't understand. This could also be erroneous entires like utf-9 or 'utf8'. Instead of completely failing, fallback to UTF-8.
Reading the encoding of a commit can result in a Unsupported- or IllegalCharsetException. This happens when for whatever reason the commit has an encoding recorded that the system doesn't understand. This could also be erroneous entires like
utf-9
or'utf8'
. Instead of completely failing, fallback to UTF-8.