lib/remote_table/properties.rb in remote_table-1.1.6 vs lib/remote_table/properties.rb in remote_table-1.1.7
- old
+ new
@@ -46,14 +46,14 @@
# Default: 0
def skip
t.options['skip'].to_i
end
- # The encoding
+ # Likely external encoding
#
# Default: "UTF-8"
def encoding
- t.options['encoding'] || 'UTF-8'
+ @encoding ||= ::Array.wrap(t.options['encoding'] || [ 'UTF-8', 'US-ASCII', 'ASCII-8BIT' ])
end
# The delimiter
#
# Default: ","