]> git.phdru.name Git - bookmarks_db.git/commitdiff
Fix(Py3): Always log in UTF-8
authorOleg Broytman <phd@phdru.name>
Mon, 20 Nov 2023 20:58:14 +0000 (23:58 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 20 Nov 2023 20:58:14 +0000 (23:58 +0300)
Robots/bkmk_rforking_sub.py
check_url.py

index 7892407b4bad5c29970fd967730f895d69c30d90..8bbf68f57028b7c2bfc80c68407ab3d94a9afbe5 100755 (executable)
@@ -33,6 +33,7 @@ def run():
 
     from m_lib.flog import openlog
     log = openlog("check2.log")
+    log.outfile.reconfigure(encoding='utf-8')
     from robots import robot
     robot = robot(log)
 
index 15a6d33c2279bc53b49a1685570f67325207d964..a43d00765372b5e13f6e220546d91f55a0f2e4df 100755 (executable)
@@ -38,6 +38,7 @@ def run():
     from m_lib.flog import makelog
     log = makelog("check.log")
     log.outfile.reconfigure(encoding='utf-8')
+    sys.stdout.reconfigure(encoding='utf-8')
 
     from robots import robot
     robot = robot(log)