Closed GoogleCodeExporter closed 8 years ago
我跟踪了一下打开这个文件的过程,发现造成乱码的原因是��
�于该文件提供的语言代码 lcid = 0x0800,而中文应该是 0x0804。
lcid 表可以从这里查到:
http://msdn.microsoft.com/en-us/library/cc233968.aspx
附图是我设置中文为 0x0800
后的效果,但这只是个临时措施,不符合标准。
Original comment by jungl...@gmail.com
on 14 Feb 2011 at 4:38
Attachments:
谢谢你百忙之中抽出时间来帮忙解决这个问题,你可以我给��
�个patch吗?昨天我试着在models/chmfile.c里增加case 0x0800到return
"cp936"里,但是没有用,也是乱码。
Original comment by jeff_j...@126.com
on 15 Feb 2011 at 12:39
没错,我也是这样加的:
$ git diff src/models/chmfile.c
diff --git a/src/models/chmfile.c b/src/models/chmfile.c
index c3080b8..3ee20c4 100644
--- a/src/models/chmfile.c
+++ b/src/models/chmfile.c
@@ -471,6 +471,7 @@ get_encoding_by_lcid(guint32 lcid)
return "ISO-8859-13";
case 0x0411:
return "cp932";
+ case 0x0800:
case 0x0804:
case 0x1004:
return "cp936";
但之后要先清一下 .cache/chmsee/bookshelf 里面的目录。
Original comment by jungl...@gmail.com
on 15 Feb 2011 at 4:25
谢谢,当时我没有删除cache。
Original comment by jeff_j...@126.com
on 15 Feb 2011 at 11:59
Clear all pre-2.0 issues
Original comment by jungl...@gmail.com
on 18 Jan 2013 at 6:10
Original issue reported on code.google.com by
jeff_j...@126.com
on 10 Feb 2011 at 1:19Attachments: