selimrbd / py-obsidianmd

Python interface to your Obsidian notes
BSD 3-Clause "New" or "Revised" License
262 stars 21 forks source link

Doesn't work on other language #18

Open CyRamos opened 1 year ago

CyRamos commented 1 year ago

Hey :) After I configured my path I tried to use generate notes variable with the path value and got this error: 'charmap' codec can't decode byte 0x90 in position 59: character maps to <undefined>

After I tried to remove my language (Hebrew) from the specific note the exception was raised, I noticed it succeed to pass and raise again the same exception to the following note that got Hebrew.

Many thanks ahead, hopefully, it could be fixed soon 👍

Antonio-Stradiavanti commented 1 year ago

The same problem, solution: open the note.py file and add a third parameter to the open() function on line 33 and also in line133 : encode="utf-8" image image

SeLiEnisyst commented 10 months ago

you wrote "encode="utf-8"", but it should be "encoding="utf-8""...