Author: zayoo
Description:
English
Why there is a "$this->load();" on line 1495 of "function fallback8bitEncoding()" in languages/Language.php of Mediawiki 1.13.3?
I'm a Simplified Chinese user and our default charset is gb2312. When we use Mozilla Firefox to access somewhere Mediawiki and search something Chinese, as click into the address bar and press enter, it shows a page with a mess title.
That means (not only in FireFox but also in IE) if you click a url to "http://zh.wikipedia.org/w/index.php?title=首页", it works nice; but when you type it into the address bar and press enter, it goes into an empty page with title "Ê×Ò³".
I'm trying to solve the problem and I have found a method, that is, delete "$this->load();" on line 1495 in languages/Language.php. After that, all works well. Is it useful here (for some other language) and can it be deleted?
zayoo
简体中文
请问Mediawiki 1.13.3 languages/Language.php的第1495行(function fallback8bitEncoding()中的)语句$this->load();有什么作用?
我是一名简体中文用户,我们的默认字符集是gb2312。当使用Firefox浏览Mediawiki平台的站点并搜索中文时,如果点击浏览器地址栏并按回车键,将会进入一个标题为乱码的页面。
意思是(不论Firefox还是IE)如果点击“http://zh.wikipedia.org/w/index.php?title=首页”,它能够进入正常的页面;而如果将其输入浏览器地址栏并按回车键,将会进入一个标题为“Ê×Ò³”的错误页面。
我在尝试解决此问题时,发现可通过删除languages/Language.php第1495行的“$this->load();”能够完美地解决此问题。那么这行语句(在其它语言中)是否确有必要存在并能否去掉?
zayoo
Version: 1.13.x
Severity: normal
OS: Windows Server 2003
Platform: PC
URL: /languages/Language.php