]> git.phdru.name Git - bookmarks_db.git/blobdiff - sort_db.py
Fix(Py3): Open output text files in utf-8 encoding
[bookmarks_db.git] / sort_db.py
index 143c7d1349c44be69406dc4137f3c1d88c10d23a..bcd3a8ed6aa50387ec3766ed75dc0e7af7c62c5b 100755 (executable)
@@ -99,7 +99,7 @@ def run():
         sys.stdout.write("Writing %s: " % output_filename)
         sys.stdout.flush()
 
-    outfile = open(output_filename, 'w')
+    outfile = open(output_filename, 'w', encoding='utf-8')
     writer = writer(outfile)
     writer.root_folder(root_folder)
     walk_linear(linear, writer)