honomoa / pcmanfx

Automatically exported from code.google.com/p/pcmanfx
Other
0 stars 0 forks source link

尝试Patch:自动检测当前语言编码 #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
在大陆的水木社区上看到有人提简体中文访问的问题,于是��
�尝试修改了一下,大概就相当于TODO中的这一
段:
Provide encoding settings. defaults to big5 (or can we automatically detect 
current locale?).
采用的方式来自
https://developer.mozilla.org/en/Code_snippets/Preferences#nsIPrefLocalizedSt
ring

请看一下是否可行?

另外提供了简体中文的locale文件

Original issue reported on code.google.com by zhaobot...@gmail.com on 24 Dec 2009 at 1:37

Attachments:

GoogleCodeExporter commented 9 years ago
Locale的部份看起來ok
至於charset偵測的部份我覺得這個應該做成site-specific

Original comment by sst.dre...@gmail.com on 28 Dec 2009 at 5:14

GoogleCodeExporter commented 9 years ago
这样啊……我本以为对于简体中文用户默认为用gb2312;对繁��
�用户默认big5。然后大家上非默认编码的bbs的话就在用
户名后边加“.”好了……

Original comment by zhaobot...@gmail.com on 28 Dec 2009 at 12:39

GoogleCodeExporter commented 9 years ago
不過這樣說也對,對特定Locale設定預設/默認值這件事情應該�
��ok的

Original comment by sst.dre...@gmail.com on 29 Dec 2009 at 10:36