UnicodeDecodeError: 'utf-8' codec can't decode byte ....

I’m downloading data from manticore using :

  • manticoresearch Version: 2.2.0
  • Python 3.7.1

The data that I’m downloading includes characters that should be contained in UTF-16 not just UTF-8. How do I use UTF-16 instead of UTF-8. How can I correct this code to stop getting the following error:

  • UnicodeDecodeError: ‘utf-8’ codec can’t decode byte …

11:59

manticore_pre_results = utilsApi.sql(body = manticore_query ,
async_req=True,
_preload_content=True,
_request_timeout=50)
encoding='utf-16' manticore_results = manticore_pre_results.get()

Please provide an entire script to reproduce the issue.