Last modified: 2013-11-27 21:25:38 UTC
Please mass upload to commons the files from Fundación Joaquín Díaz, freed through WM-ES. User to perform the upload: [[User:Fundación Joaquín Díaz]] Images and descriptions: http://archivos.wikimedia.org.es/wikimedia/es/iniciativas/fotos-fjd.zip Note: the descriptions are in ISO-8859-1, not utf-8
(In reply to comment #0) > Note: the descriptions are in ISO-8859-1, not utf-8 Nothing like making life difficult when importImages.php doesn't offer differing encoding support Having them in the same folder is preferred (though easily fixed), as is having the wikitext files to be the extension replaced with txt. Though, using "jpg.txt" is easily enough done too. Found: 2764 Added: 2764 We now have numerous files with screwed up encoding in the descriptions...
> Nothing like making life difficult when importImages.php doesn't offer > differing encoding support I considered the addition of utf8_encode() to the script previous to running it to be trivial :( --- a/maintenance/importImages.php +++ b/maintenance/importImages.php @@ -214,3 +214,3 @@ } else { - $commentText = file_get_contents( $f ); + $commentText = utf8_encode( file_get_contents( $f ) ); if ( !$commentText ) { I converted the filenames to utf-8, though. > Having them in the same folder is preferred (though easily fixed), as is > having the wikitext files to be the extension replaced with txt. Though, using > "jpg.txt" is easily enough done too. Sorry. Although "jpg.txt" format is also supported https://git.wikimedia.org/blob/mediawiki%2Fcore/b8a720c5e6322de4311024d0769be9996b699edb/maintenance%2FimportImages.inc#L77 > We now have numerous files with screwed up encoding in the descriptions... Descriptions have been fixed. Closing bug. Thanks for your work