You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: