farling42 / obsidian-import-json

Plug-in for Obsidian.md which will create Notes from JSON files
MIT License
85 stars 5 forks source link

Accents issue #16

Closed pasalomoco closed 2 years ago

pasalomoco commented 2 years ago

I have a problem with the accents when i try to import some data image

farling42 commented 2 years ago

Another case of files being opened or written in ASCII instead of UTF-8 mode. I'll have a look at where the encoding isn't being handled properly.

farling42 commented 2 years ago

Are you using two {{ or three {{{ brackets in your handlebars template file?

farling42 commented 2 years ago

If the problem is in reading a CSV file then I need to fix the code since Papa.parse is missing

encoding: "utf-8"

(But that should be the default, acccording to the FileReader API that Papaparse uses.)

farling42 commented 2 years ago

I've just tested using á and í and both CSV and JSON seem to be working properly.

farling42 commented 2 years ago

Is the data in CSV of JSON files?

pasalomocoPacheta commented 2 years ago

It´s ok now, it was an error in my csv. Thank you very much for your answers

pasalomocoPacheta commented 2 years ago

If the problem is in reading a CSV file then I need to fix the code since Papa.parse is missing

encoding: "utf-8"

(But that should be the default, acccording to the FileReader API that Papaparse uses.)

Exactly

farling42 commented 2 years ago

It´s ok now, it was an error in my csv. Thank you very much for your answers

Excellent news!