@hakanensari
I see the file marketplace.rb have assign the response encoding to Peddler::Parser like FlatFileParser.
But i found recently amazon (US, DE) has change the report api (flat file) encoding from 'ISO-8859-1' to 'Cp1252' and i found this article
These affect something like this:
s = "™"
s.encoding #>#<Encoding:UTF-8>
s.encode('cp1252') #>"\x99"
s.encode('ISO-8859-1') #>Encoding::UndefinedConversionError: U+2122 from UTF-8 to ISO-8859-1....
So i think we should move ISO-8859-1 to Cp1252. Cp1252 can hold all char in iso-8859-1and some other latin chars.
attach with some response returned with Amazon Scratchpad
(I only have US and DE account for amaozn mws, so only test US and DE market)
@hakanensari I see the file marketplace.rb have assign the response encoding to
Peddler::Parser
likeFlatFileParser
.But i found recently amazon (US, DE) has change the report api (flat file) encoding from 'ISO-8859-1' to 'Cp1252' and i found this article
These affect something like this:
So i think we should move ISO-8859-1 to Cp1252. Cp1252 can hold all char in iso-8859-1and some other latin chars.
attach with some response returned with Amazon Scratchpad (I only have US and DE account for amaozn mws, so only test US and DE market)
And response header with
EXCON_DEBUG=true