OSDN Git Service

[modify]コンソールへの出力時にUTF-8へエンコードする
authorHabu <habu@users.sourceforge.jp>
Fri, 30 Mar 2018 10:18:45 +0000 (19:18 +0900)
committerHabu <habu@users.sourceforge.jp>
Fri, 30 Mar 2018 10:18:45 +0000 (19:18 +0900)
score/tools/tweet_score.py

index 8a134ee..384778d 100755 (executable)
@@ -243,7 +243,7 @@ if __name__ == '__main__':
             sys.exit(1)
 
         if (options.dry_run):
-            print(tweet_contents)
+            print(tweet_contents.encode("UTF-8"))
         else:
             tweet(config.config['TwitterOAuth'], tweet_contents)
     except Exception: