Skip to content

UnicodeDecodeError in Python3 #61

Open
@JarryShaw

Description

@JarryShaw

This is an issue with thrift (dependency of this library), an open issue is already filed to that project.

Environment:

  • Operating System: Windows 10 Pro (Simplified Chinese)
  • Python Interpreter: Python 3.6.6
  • osquery Version: 3.3.0
  • osquery-python Version: 3.0.5

When querying, UnicodeDecodeError raised with error message: "'utf-8' codec can't decode byte 0xc3 in position 0: invalid continuation byte" from thrift.compat.binary_to_str, which is because the encoding of bin_val parameter should be "gbk".

Maybe try hacking the source code of thrift and include it as a vendor package when distribution? (just as pipenv and other projects do)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions