diff --git a/jc/parsers/history.py b/jc/parsers/history.py index a2b02450..a272c236 100644 --- a/jc/parsers/history.py +++ b/jc/parsers/history.py @@ -19,7 +19,8 @@ $ history | jc --history -p def parse(data): output = {} - linedata = data.splitlines() + # split lines and clear out any non-ascii chars + linedata = data.splitlines().encode('ascii', errors='ignore').decode() # Clear any blank lines cleandata = list(filter(None, linedata))