amzn / selling-partner-api-models

This repository contains OpenAPI models for developers to use when developing software to call Selling Partner APIs.
Apache License 2.0
601 stars 730 forks source link

GET_MERCHANT_LISTINGS_ALL_DATA report is using chartset:CP1252 ,getting incorrect characters #4031

Closed liuzhenggang closed 1 month ago

liuzhenggang commented 3 months ago

We use sp-api to download the GET_MERCHANT_LISTINGS_ALL_DATA report, and its response header Content-Type value is text/plain; charset=Cp1252. We use cp1252 to parse the file, and some characters will be parsed as question marks. For example, '&' and ':' (Chinese colon)

jawheral commented 3 months ago

Hi @liuzhenggang,

Please check whether your report was compressed and which CompressionAlgorithm was it compressed with. You can find this in the getReportDocument endpoint response.

https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference#compressionalgorithm

You can also follow the following guide to steps on how to download and decompress a report.

Best, Jawher Selling Partner API Solutions Architect

liuzhenggang commented 2 months ago

@jawheral We will still encounter the problem of converting special characters into question marks when we use the method you described to pull the data again

jawheral commented 2 months ago

Hi @liuzhenggang,

I suggest that you request the report again and troubleshoot your decompress and decoding logic.

If you still face this issue, then I kindly ask you to contact DeveloperSupport to report it.

Best, Jawher Solutions Architect - Selling Partner API

liuzhenggang commented 2 months ago

Hi@jawheral, I tried again, but the problem still persists.

github-actions[bot] commented 1 month ago

This is a very old issue that is probably not getting as much attention as it deserves. We encourage you to check if this is still an issue after the latest release and if you find that this is still a problem, please feel free to open a new issue and make a reference to this one.

github-actions[bot] commented 1 month ago

closed for inactivity