lib/peddler/marketplace.rb in peddler-2.0.0 vs lib/peddler/marketplace.rb in peddler-2.0.3
- old
+ new
@@ -37,13 +37,12 @@
def not_found!(country_code)
raise ArgumentError, %("#{country_code}" is not a valid marketplace)
end
end
- # Caveat: We use the supersets Windows-31J and CP1252 in place of Shift_JIS
- # and ISO 8859-1 respectively to handle edge cases where latter will not
- # support some characters. The supersets should be safe to use as drop-in
- # replacements.
+ # Caveat: We use supersets Windows-31J and CP1252 in place of Shift_JIS and
+ # ISO 8859-1 respectively to handle some edge cases. These should be safe to
+ # drop in as replacements.
def encoding
case country_code
when 'JP'
'Windows-31J'
when 'CN'