Last modified: 2014-03-14 23:39:11 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T10963, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 8963 - Maintenance scripts break with certain multi-byte titles entered on the Windows command line
Maintenance scripts break with certain multi-byte titles entered on the Windo...
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.11.x
PC Windows 2000
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-02-13 08:05 UTC by uta
Modified: 2014-03-14 23:39 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description uta 2007-02-13 08:05:03 UTC
hi I'm japanese guy.
I use 
MediaWiki: 1.7.1 
PHP: 5.1.4 (apache2handler) 
MySQL: 5.0.24a-community-max-nt 
I am not good at English and do not understand php, too. 
I am glad when I understand the matter that I am going to say. 
When I use Japanese (2 bytes letter? double byte?) for a file name and carry out 
importtextfile.php, I do not set the item name definitely. 
Thus, I do a file name in British several characters and carry out importtextfile.php and 
fix title in Japanese in mysql afterwards. 
However, then a search of an article is not possible
Comment 1 Brion Vibber 2007-02-13 23:03:28 UTC
This is probably due to Windows using a non-Unicode encoding for filenames and
console-app-level communications.

It may be possible to find out the locale encoding and convert, but I'm not
really sure how offhand...
Comment 2 Platonides 2007-06-13 13:04:51 UTC
Windows encoding on prompt is quite odd for supporting MS-DOS codepages, for crazyness of console programs for windows using special characters.

If using cmd (ie. no command.com Win9x/Me) you can issue the command "chcp 1252" (change to Windows-1252 codepage, default for English Windows version, set here the Japanese one) and choosing Lucida Console as the console font (right-click on the system-menu of the console window, Properties, Font Tab. Apply to current window).

This reduces the back and forth encodings so it might allow you to provide the filename in a way the scripct can use.


If you change the arcticle name directly in the db, you may need to rebuild the search index after ( maintenance/rebuildtextindex.php ).


Comment 3 Andre Klapper 2014-03-14 23:39:11 UTC
uta: I assume Platonides' comment 2 helped. If this is still a problem in a recent version of MediaWiki and Microsoft Windows, please reopen this ticket.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links