lib/kpm/account.rb in kpm-0.8.1 vs lib/kpm/account.rb in kpm-0.8.2
- old
+ new
@@ -192,10 +192,10 @@
# fix_dates; fill_empty_column;
def sanitize_and_import(source_file, skip_payment_methods)
tables = {}
error_importing_data = false
- File.open(source_file, 'r') do |data|
+ File.open(source_file, 'r:UTF-8') do |data|
rows = nil
table_name = nil
cols_names = nil
data.each_line do |line|