https://bugzilla.wikimedia.org/show_bug.cgi?id=17020





--- Comment #2 from zayoo <[email protected]>  2009-01-16 05:48:47 UTC ---
There is no use changing default charset, while setting $fallback8bitEncoding
failed(maybe I don't know how to set it).

I've found this line means to change charset while it finds the title entered
non-utf8.

return $this->iconv( $this->fallback8bitEncoding(), "utf-8", $s );
Language.php 1491 function checkTitleEncoding( $s )

Here I don't know what $this->fallback8bitEncoding() is, and I can't have it
printed. But when leave the first parameter empty, that is iconv("", "utf-8",
$s );, it also works nice, maybe it uses the default charset of server for
input.

Either delete $this->load(); in function fallback8bitEncoding() or have return
$this->iconv("", "utf-8", $s ); works nice.

I have no ability testing function load() because it's widely used and is about
cache. I just found when $this->load(); exists, there may be a redirect(that
causes the problem) while non-utf8 title entered, and while deleted, the
redirect disappears.

What is important, a programmer who uses single-byte charactors only cannot
think the way of those who uses multi-byte charactors.(haha~)

At last I want to say, I'm not good at English, this is my first time reporting
bug(is it?) to corporated programmers, and, I'm one of such GNU/Windows, I
can't master Linux and even php. So my thought may be strange and have you
troubled.

Now my wiki have $this->load(); deleted and works nice, while other Chinese
wikis(including zh.wikipedia.org) not:
http://www.ipal.org.cn/i/
(Warning: Chinese) but only can be tested if you use Chinese.

And I'll have more discusions with other Chinese programmers, and test new
wikis in virture machine, while have modification before installation or have
language changed.

Yours faithfully,
zayoo


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to