Last modified: 2010-05-15 15:52:00 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 T12445, the corresponding Phabricator task for complete and up-to-date bug report information.
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