Skip to content

UnicodeEncodeError with walk_to_dfxml.py #19

@tw4l

Description

@tw4l

Creating DFXML with walk_to_dfxml.py (called with Python 3.5.2 in Ubuntu 16.04) on two mounted disk images resulted in the following errors:

Traceback (most recent call last):
File "/usr/share/dfxml/python/walk_to_dfxml.py", line 182, in
main()
File "/usr/share/dfxml/python/walk_to_dfxml.py", line 168, in main
dobj.print_dfxml()
File "/usr/share/dfxml/python/Objects.py", line 219, in print_dfxml
output_fh.write(_ET_tostring(e))
UnicodeEncodeError: 'utf-8' codec can't encode character '\udc9a' in position 30: surrogates not allowed

Traceback (most recent call last):
File "/usr/share/dfxml/python/walk_to_dfxml.py", line 182, in
main()
File "/usr/share/dfxml/python/walk_to_dfxml.py", line 168, in main
dobj.print_dfxml()
File "/usr/share/dfxml/python/Objects.py", line 219, in print_dfxml
output_fh.write(_ET_tostring(e))
UnicodeEncodeError: 'utf-8' codec can't encode character '\udc8a' in position 33: surrogates not allowed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions