Commit 752a70ec authored by ale's avatar ale

encode output in utf8

parent 1fbd2112
......@@ -48,7 +48,7 @@ def do_search(lens, opts, args):
if opts.time_range:
time_range = utils.parse_time_range(opts.time_range)
for doc in lens.search(query, time_range):
sys.stdout.write(utils.format_log(doc))
sys.stdout.write(utils.format_log(doc).encode('utf-8', 'replace'))
sys.stdout.flush()
......
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