You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
While using get_feed_result_document to retrieve data for FeedType.POST_FLAT_FILE_FULFILLMENT_DATA submitted feeds, I noticed different encodings returned by Amazon on several Amazon venues:
US windows-1252
UK windows-1252
DE windows-1252
JP windows-31j
FR windows-1252
CA windows-1252
IT windows-1252
ES windows-1252
AU UTF-8
SG UTF-8
BR windows-1252
NL windows-1252
However, at lines 228 & 229 encoding iso-8859-1 is used to decode the content...Is there any reason why the content is not decoded using Amazon returned encoding?
In addition, do you thing is worth passing thru Amazon encoding info to the get_feed_result_document caller (in case the caller wants to serialize the result)?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
While using
get_feed_result_document
to retrieve data forFeedType.POST_FLAT_FILE_FULFILLMENT_DATA
submitted feeds, I noticed different encodings returned by Amazon on several Amazon venues:python-amazon-sp-api/sp_api/api/feeds/feeds.py
Line 226 in d0e322f
encoding = requests.get(url).encoding
)However, at lines 228 & 229 encoding
iso-8859-1
is used to decode thecontent
...Is there any reason why thecontent
is not decoded using Amazon returned encoding?In addition, do you thing is worth passing thru Amazon encoding info to the
get_feed_result_document
caller (in case the caller wants to serialize the result)?Thanks a lot,
madalin
Beta Was this translation helpful? Give feedback.
All reactions