Feat: change readFile encoding

This commit is contained in:
Bertrand Benjamin 2018-12-03 12:25:54 +01:00
parent 9f3cdd4f1b
commit 22aeb7739a

View File

@ -126,7 +126,8 @@ export default {
} }
}, },
load_csv (context, csv) { load_csv (context, csv) {
readFile(path.join(context.rootGetters['config/data_dir'], csv), 'utf8', (err, content) => { //readFile(path.join(context.rootGetters['config/data_dir'], csv), 'utf8', (err, content) => {
readFile(path.join(context.rootGetters['config/data_dir'], csv), 'Latin1', (err, content) => {
if (err) { if (err) {
console.log(err) console.log(err)
} else { } else {