]> git.phdru.name Git - bookmarks_db.git/blobdiff - check_url.py
Fix(robots): Fix "Content-Length" header returning `None`
[bookmarks_db.git] / check_url.py
index bb13be23a59bead68130405ffd224b12225c14e2..1c51481a17254b92757ba1e59ab498079218d883 100755 (executable)
@@ -37,6 +37,7 @@ def run():
 
     from m_lib.flog import makelog
     log = makelog("check.log")
+    log.outfile.reconfigure(encoding='utf-8')
 
     from robots import robot
     robot = robot(log)
@@ -58,10 +59,11 @@ def run():
   LastModified: %s
   IconURI: %s
   Icon: %s
+  Charset: %s
   """ % (
               bookmark.href, getattr(bookmark, 'real_title', ''),
               strftime(bookmark.last_modified), bookmark.icon_href,
-              bookmark.icon))
+              bookmark.icon, bookmark.charset))
 
     robot.stop()
     log.close()