Last modified: 2010-05-15 15:33:04 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 T3488, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 1488 - Latin1 site with UTF8 user language preference converts messages twice
Latin1 site with UTF8 user language preference converts messages twice
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
1.4.x
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: utf8
Depends on:
Blocks:
  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: ---


Attachments

Description Zigger 2005-02-07 18:52:06 UTC
On a site with $wgUseLatin1=true (e.g. en.wikipedia.org) 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.


Navigation
Links