https://bugzilla.wikimedia.org/show_bug.cgi?id=57052

Platonides <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Platonides <[email protected]> ---
> 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

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to