Content-Type: text/plain; charset=utf-8
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.
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.