Set UTF-8 as the default commit charset at the online text editor (#3112)

This commit is contained in:
Naoki Takezoe
2022-08-21 22:50:12 +09:00
committed by GitHub
parent a407e75459
commit 997def54ab

View File

@@ -98,8 +98,8 @@ object StringUtil {
detector.handleData(content, 0, content.length)
detector.dataEnd()
detector.getDetectedCharset match {
case null => "UTF-8"
case e => e
case null | "US-ASCII" => "UTF-8"
case e => e
}
}