Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot display GBK content in diff page #711

Closed
caixw opened this issue Dec 5, 2014 · 6 comments
Closed

Cannot display GBK content in diff page #711

caixw opened this issue Dec 5, 2014 · 6 comments
Labels
💊 bug Something isn't working

Comments

@caixw
Copy link

caixw commented Dec 5, 2014

  • Bug Description:
    diff页面,如果源代码为非utf-8时,中文显示乱码。
  • Gogs Version:
    master
  • Git Version:
    1.71.
  • System Type:
    centos6.5
  • Error Log:
@unknwon
Copy link
Member

unknwon commented Dec 5, 2014

Thanks your feedback!

Please provide reproduce steps and any necessary files(if they're public), it would help us debug better!

@caixw
Copy link
Author

caixw commented Dec 5, 2014

不好意思,一个私人项目,不能提供地址。就是在
·name/repo/commit/xxxxxxx·
页面,如果源码是非utf8,则中文显示乱码。我们的是gbk编码,显示如下:
123

@unknwon unknwon added the 💊 bug Something isn't working label Dec 5, 2014
@unknwon
Copy link
Member

unknwon commented Dec 5, 2014

I see, thanks!

@unknwon unknwon changed the title diff页面乱码 Cannot display GBK content in diff page Dec 5, 2014
@dyxushuai
Copy link

我也遇到这个问题了,gbk编码文件的展示, diff都会乱码。中文路径好像还行
测试项目

@unknwon
Copy link
Member

unknwon commented Dec 7, 2014

@johnsmithx thanks your info!

@unknwon
Copy link
Member

unknwon commented Dec 9, 2014

@caixw @johnsmithx Pushed fix on dev branch and you can test on https://try.gogs.io/owiga/wuya

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
💊 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants