lineofflight / peddler

Amazon Selling Partner API (SP-API) in Ruby
MIT License
307 stars 130 forks source link

Encoding Issue #88

Closed jxdx closed 7 years ago

jxdx commented 7 years ago

sku = 'Küche 7pcs MultiColor Utensil Set'

response = request.get_matching_product_for_id('SellerSKU', *skus)

response.parse

{"Error"=>{"Type"=>"Sender", "Code"=>"InvalidParameterValue", "Message"=>"Küche 7pcs MultiColor Utensil Set is an invalid SellerSKU for marketplace ATVPDKIKX0DER"}, "Id"=>"Küche 7pcs MultiColor Utensil Set", "IdType"=>"SellerSKU", "status"=>"ClientError"}

Notice the first word Küche has strange characters in it. I need the response to have the same SKU that I sent, is there anyway to convert this back?

hakanensari commented 7 years ago

What version of jeff are you using? A recent commit there may have fixed what you're describing.

jxdx commented 7 years ago
peddler (1.0.2)
      jeff (~> 1.3)
      multi_xml (~> 0.5.0)
jxdx commented 7 years ago

Updating my peddler version fixed the issue. Thank you