Replies: 1 comment
-
python-amazon-sp-api=0.12.2 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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):
Beta Was this translation helpful? Give feedback.
All reactions