https://bugzilla.wikimedia.org/show_bug.cgi?id=17020
--- Comment #10 from zayoo <za...@126.com> 2010-09-14 08:03:41 UTC --- It works very nice in Mediawiki 1.16, while both client and server are Chinese, and non-unicode is set to Chinese(PRC), using both IE and Firefox. I will test it in English system soon. PHP warnings occur several times about something undefined, so I made this in LocalSettings.php: if (!isset($_SERVER['REQUEST_URI'])) { if(!isset($_SERVER['SCRIPT_NAME'])) $_SERVER['SCRIPT_NAME']=''; $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME']; if(isset($_SERVER['QUERY_STRING'])) { $_SERVER['REQUEST_URI'] .= "?" . $_SERVER['QUERY_STRING']; } } if (!isset($_SERVER['REQUEST_METHOD'])) {$_SERVER['REQUEST_METHOD']='GET';} By the way, when I use IIRF for rewrite, Chinese comes into massy code sometimes (repeatable for certain titles), especially the number of Chinese is ODD or there're ASCII letters inside, on both clicking a link and typing into the bar. It occurs only when the server uses Chinese for non-unicode, but becomes normal when set English for non-unicode. It is a bug of PHP (not Mediawiki), but never occur on ASP pages (Why?). Fortunately, I did these and it works for most of the titles. In iirf.ini: RewriteRule ^/$ /i/index.php?title=%E9%A6%96%E9%A1%B5 [L,QSA] RewriteRule ^/zh[/]*$ /i/index.php?title=%E9%A6%96%E9%A1%B5 [L,QSA] RewriteRule ^/zh/(.*)[_\x20]\((.*)\)$ /i/index.php?title=$1|||$2|| [L,QSA] RewriteRule ^/zh/(.*)$ /i/index.php?title=$1| [L,QSA] and in LocalSettings.ini: if (isset($_GET['title'])) { $_GET['title']=str_replace("|||","_(",$_GET['title']); $_GET['title']=str_replace("||",")",$_GET['title']); $_GET['title']=str_replace("|","",$_GET['title']); } I know it's not a good method. I need some help. And I also want Extension:SpecialUploadLocal for 1.16.0. I tried but failed - there are too many classes involved in uploading. I think it's better to take this function as an official (embedded) one. Another question: can it be ignored for upper-lower case and/or traditional-simplified Chinese for titles in Mediawiki? -- 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 Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l