mirror of
https://github.com/zulip/zulip.git
synced 2025-10-27 18:13:58 +00:00
UTF-8 is far and wide the dominant encoding, so we assume that encoding if we have more than 66% confidence -- this allows it to be guessed even for short files. ISO-8859-1 caps at 73% confidence, so we assume that if it's the best option and it hits that max. Otherwise, we still require 90% confidence.