Browse Source

utf8 output issue

master
Michael Murtaugh 3 years ago
parent
commit
768c6456cc
2 changed files with 2 additions and 1 deletions
  1. 1
    0
      .gitignore
  2. 1
    1
      scripts/mediawiki.py

+ 1
- 0
.gitignore View File

@@ -11,3 +11,4 @@ drop.node.json
11 11
 archive.json
12 12
 about.json
13 13
 index.json
14
+wiki/

+ 1
- 1
scripts/mediawiki.py View File

@@ -386,7 +386,7 @@ def recentfiles (args):
386 386
                     break
387 387
 
388 388
                 # Construct an item for output
389
-                print ("[{0}], date:{1}".format(filepage.page_title, r['timestamp']), file=sys.stderr)
389
+                print (u"[{0}], date:{1}".format(filepage.page_title, r['timestamp']).encode("utf-8"), file=sys.stderr)
390 390
                 usagepage = None
391 391
                 for usagepage in filepage.imageusage():
392 392
                     break # just grab the first usage page

Loading…
Cancel
Save