Defect #4490
closedRepository—>View show disordered with GBK(Chinese) code.
Description
Here are some display problems, on the Chinese code.
Shown as the image "GBKcode.png".
The file ("testcode3.txt") is GBK code, has been commited with TSVN. When I view the code of this file on Redmine's Repository,it's Disordered.
This problem has been troubled me two weeks!
I learn Trac and Redmine for 3 weeks, install it step by step with the packet which their needs. AND I was so shocked by their strong for the great idear that all of them can connect with SVN. Redmine is more powered then Trac for the User-friendly degree, but the Chinese CODE.
So I urge you for help!
— a Chinese boy
Files
Updated by Lei Wang about 16 years ago
I'm sorry I forgot to select the target version, the target version is Redmine 0.87.
It also have the same problem with BitNami install.
I will waiting for your message.
Updated by Jean-Philippe Lang about 16 years ago
Have you tried to enter an appropriate value in Administration -> Settings -> Repositories -> Repositories encodings (eg. GBK) ?
Updated by Lei Wang about 16 years ago
Jean-Philippe Lang wrote:
Have you tried to enter an appropriate value in Administration -> Settings -> Repositories -> Repositories encodings (eg. GBK) ?
Philippe,thank you for your message. And with your hint I just remembered, I didn't make sure the UTF-8code of the file before I commited it to SVN. I think I must make two things:
1. make sure the name of the file is EN.
2. make sure the file is UTF-8 code.
3. And enter an appropriate value in _Administration -> Settings -> Repositories -> Repositories encodings for UTF-8
I tried again and again, but the GBK is not be supported will. My English is very poor, but you also helped me.
thanks !
Updated by Eric Davis about 16 years ago
- Priority changed from Urgent to Normal
- Affected version (unused) set to 0.8.7
- Affected version set to 0.8.7
Updated by Toshi MARUYAMA about 15 years ago
- File test.hg test.hg added
- File testcode3.txt.png testcode3.txt.png added
- File TortoiseHg-about.png TortoiseHg-about.png added
- File hgtk-log.png hgtk-log.png added
- File redmine-annotate.png redmine-annotate.png added
- File redmine-diff.png redmine-diff.png added
- File redmine-setting.png redmine-setting.png added
- Status changed from New to Closed
- Resolution set to Invalid
Line 1 is "测试:英文文名、GBK格式、中文的注释 内容:在redmine中显示以及changset文件是否是乱码".
Line 6 is "5第五行再次修改".
This is correct behavior.
I attach TorotiseHg and Redmine images on my Fedora 13.
"test.hg" is Mercurial repository bundle.
$ LANG=zh_CN.GBK hgtk log