UnicodeDecodeError
report type: GET_BRAND_ANALYTICS_SEARCH_TERMS_REPORT
market: JP
I used the function get_report_document(reportDocumentId=report_document_id, download=True, decrypt=True,
character_code=character_code)
to get report document.The report market is Japan, character_code is "shift_jis", but it raise the UnicodeDecodeError,
'shift_jis' codec can't decode byte 0x83 in position 312: illegal multibyte sequence. I try to use character_code="ISO-8859-1",
but the return data is Garbled code.
Which character_code I should use to get Japanese report?
To Reproduce
character_code = "shift_jis"
get_report_document(reportDocumentId=report_document_id, download=True, decrypt=True,
character_code=character_code)
Desktop (please complete the following information):
UnicodeDecodeError
report type: GET_BRAND_ANALYTICS_SEARCH_TERMS_REPORT
market: JP
I used the function get_report_document(reportDocumentId=report_document_id, download=True, decrypt=True,
character_code=character_code)
to get report document.The report market is Japan, character_code is "shift_jis", but it raise the UnicodeDecodeError,
'shift_jis' codec can't decode byte 0x83 in position 312: illegal multibyte sequence. I try to use character_code="ISO-8859-1",
but the return data is Garbled code.
Which character_code I should use to get Japanese report?
To Reproduce
character_code = "shift_jis"
get_report_document(reportDocumentId=report_document_id, download=True, decrypt=True,
character_code=character_code)
Desktop (please complete the following information):