Skip to content

failed to tail unicode file #19

@williampeking

Description

@williampeking

Hi, when i use pytailer to tail some unicode files (e.g. files incluing chinese characters), the program catch the UnicodeDecodeError saying that:
" 'utf-8' codec can't decode byte 0x9b in position 0: invalid start byte. ". I supposed that it is because the python file.read take bytes size as attribute and return str, where it may cut some 3-bytes utf-8 characters into two parts. I try to fix this problem by reading all files as binary and some other modifications. For now, it works. If you are interested, I would glad to make a contribution to this tool to help others.

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