mirror of
https://github.com/gitbucket/gitbucket.git
synced 2026-01-05 15:20:02 +01:00
Set UTF-8 as the default commit charset at the online text editor (#3112)
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user