Method: Peddler::Marketplace#encoding

Defined in:
lib/peddler/marketplace.rb

#encodingObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



29
30
31
32
33
34
35
36
37
38
39
# File 'lib/peddler/marketplace.rb', line 29

def encoding
  if japanese?
    # Caveat: I've had one instance in the past where Shift_JIS didn't
    # work but Windows-31J did when parsing a report.
    'Shift_JIS'
  elsif chinese?
    'UTF-16'
  else
    'ISO-8859-1'
  end
end