-
Notifications
You must be signed in to change notification settings - Fork 79
Open
Description
Hi,
I encountered some issues with automactc when dealing with Unicode data in browser history. For instance in runtime logs:
2021-05-00T00:00:00+0000 - browser_safari_history[46558] - DEBUG - Could not write line [SKIPPED] | ['Traceback (most recent call last):\n File "automactc.py", line 300, in write_entry\n writer.writerow(data)\nUnicodeEncodeError: \'ascii\' codec can\'t encode character u\'\\u0142\' in position 2: ordinal not in range(128)\n']
The problem seems to happens with browser_safari_history, browser_chrome_downloads, browser_chrome_history when there is a unicode character in a page title, or in a filename. I am not familiar with automactc code base, but if plugins can return data with unicode characters in it, it make sense that the csv writer would fail here. There is an attempt to fix that L293 to L299 that was commented out.
Metadata
Metadata
Assignees
Labels
No labels