Commit f912869d authored by ibuler's avatar ibuler

fix(web monitor) 修改监控特殊编码卡住

编码字符,强制utf-8
parent c95c76d0
......@@ -101,7 +101,7 @@ class EventHandler(ProcessEvent):
self.client = client
def process_IN_MODIFY(self, event):
self.client.write_message(f.read())
self.client.write_message(f.read().decode('utf-8', 'replace'))
def file_monitor(path='.', client=None):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment