mirror of
https://github.com/go-gitea/gitea
synced 2025-07-05 18:17:19 +00:00
Allow explicit charset/codepage setting for ANSI source files to alleviate issue #1088
This commit is contained in:
@ -84,6 +84,7 @@ var (
|
||||
// Repository settings.
|
||||
RepoRootPath string
|
||||
ScriptType string
|
||||
AnsiCharset string
|
||||
|
||||
// UI settings.
|
||||
IssuePagingNum int
|
||||
@ -312,6 +313,7 @@ func NewConfigContext() {
|
||||
RepoRootPath = path.Clean(RepoRootPath)
|
||||
}
|
||||
ScriptType = sec.Key("SCRIPT_TYPE").MustString("bash")
|
||||
AnsiCharset = sec.Key("ANSI_CHARSET").MustString("ISO-8859-1")
|
||||
|
||||
// UI settings.
|
||||
IssuePagingNum = Cfg.Section("ui").Key("ISSUE_PAGING_NUM").MustInt(10)
|
||||
|
Reference in New Issue
Block a user