Last modified: 2010-05-15 15:52:00 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 10445 - Charset problem with date in signatures
Charset problem with date in signatures
Status: RESOLVED DUPLICATE of bug 751
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.10.x
PC Windows Server 2003
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-07-03 08:35 UTC by Romain Riviere
Modified: 2010-05-15 15:52 UTC (History)
0 users

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


Attachments

Description Romain Riviere 2007-07-03 08:35:55 UTC
When using the ~~~~ or ~~~~~ on a localised system (French in my case), it *seems* that the produced string is ISO-8859-1 encoded regardless of PHP's setting. As a result, the string for "summer time" being "heure d'été", the "é" appear as � when read the UTF-8 way.

Since the default charset should now be UTF-8, may I suggest that in Parser.php, lines 3701-3702

		$d = $wgContLang->timeanddate( date( 'YmdHis' ), false, false) .
		  ' (' . date( 'T' ) . ')';

be changed to

		$d = $wgContLang->timeanddate( date( 'YmdHis' ), false, false) .
		  ' (' . utf8_encode(date( 'T' )) . ')';

?

This "Works For Me (tm)", and I don't think it would break much ...

Regards.
Comment 1 Brion Vibber 2007-07-03 18:27:00 UTC
utf8_encode() unfortunately would be specific to Latin-1 locales; this issue exists on Windows for other languages and charsets as well.

It may or may not be possible to get clean info out of the system for this; or else make some estimates...

*** This bug has been marked as a duplicate of bug 751 ***

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


Navigation
Links