Gitea: File encoding wrong in raw page and bleam page.

Created on 16 Jan 2020  路  2Comments  路  Source: go-gitea/gitea

  • Gitea version (or commit ref):1.10.2
    My file is GB2312,but raw page response UTF8 code .
    Content-Type: text/plain; charset=utf-8

image

kinbug

Most helpful comment

The problem lies here:

https://github.com/go-gitea/gitea/blob/e1505d62507dde9694f87abe6f82a5887e3c12d8/routers/repo/download.go#L36

We need to then detect the charset using our chardet code.

All 2 comments

The problem lies here:

https://github.com/go-gitea/gitea/blob/e1505d62507dde9694f87abe6f82a5887e3c12d8/routers/repo/download.go#L36

We need to then detect the charset using our chardet code.

@lafriks this should be backport to v1.10.3 so I marked it that milestone.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

haytona picture haytona  路  3Comments

tuxfanou picture tuxfanou  路  3Comments

kifirkin picture kifirkin  路  3Comments

lunny picture lunny  路  3Comments

jakimfett picture jakimfett  路  3Comments