Last modified: 2010-05-15 15:33:04 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 1488 - Latin1 site with UTF8 user language preference converts messages twice
Latin1 site with UTF8 user language preference converts messages twice
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: utf8
Depends on:
  Show dependency treegraph
Reported: 2005-02-07 18:52 UTC by Zigger
Modified: 2010-05-15 15:33 UTC (History)
0 users

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


Description Zigger 2005-02-07 18:52:06 UTC
On a site with $wgUseLatin1=true (e.g. where a user chooses a
different UI language preference, some UTF8-encoded messages get converted
twice, producing ? characters.

Probably every function in LanguageLatin1.php with utf8_decode is suspect.

Examples can be seen in Special:Preferences with toggle fields, and in article
histories with month abbreviations.
Comment 1 Brion Vibber 2005-02-07 19:01:08 UTC
The problem is specifically with those Language methods which work by calling wfMsg() -- which implicitly 
converts already if $wgLang is a LanguageLatin1 proxy.

It's also an unsafe general practice, as these functions may not work correctly with wfMsgForContent() or anything 
else where you're asking for info from something that's not $wgLang.

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