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

编码字符,强制utf-8
pull/171/head
ibuler 2016-03-28 22:00:48 +08:00
parent c95c76d0e0
commit f912869de6
1 changed files with 1 additions and 1 deletions

View File

@ -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):