Skip to content

Problems with Unicode in file names and url titles #10

@Te-k

Description

@Te-k

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions