amz-tools / amazon-sp-api

Amazon Selling Partner API Client
MIT License
231 stars 119 forks source link

Japanese support #142

Closed AmichayMiara closed 2 years ago

AmichayMiara commented 2 years ago

Japanese parsing issue, Yes, It working with the Amazon Scratchpad (see screenshots).

Amazon MWS Marketplace related to the issue is Japan (A1VC38T7YXB528). We are using the Reports API with the orders report GET_FLAT_FILE_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL

As we see, Japanese is not supported using the package. We have some columns that include Japanese words and in the scratchpad we get them well, but not using amazon-sp-api, see example: for order 503-3718261-3217429: product-name should be: Jordan 歯ブラシ STEP1(ステップ1) 0-2才用【8本セット】子供こども赤ちゃんやわらかめ product-name received: 'Jordan ���u���V STEP1(�X�e�b�v1) 0-2�˗p�y8�{�Z�b�g�z�q�����ǂ��Ԃ������炩��'

2022-01-13 14_11_55-Amazon Marketplace Web Services 2022-01-13 14_03_43-pma-website  C__Users_michi_WebstormProjects_pma-website  -  _packages_functio

Please add support for Japanese, Please let me know if you need any thing else.

jiangdi0924 commented 2 years ago

let download_params = { file: report_filename, charset: 'sjis' } await sellingPartner["client"].download(reportResp, download_params)

AmichayMiara commented 2 years ago

@jiangdi0924 Thank You!!