Feat: change readFile encoding
This commit is contained in:
parent
9f3cdd4f1b
commit
22aeb7739a
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user