jlb224 / moodle-mod_notetaker

Notetaker plugin for Moodle - allows students to take public or private notes within a course.
https://jlb224.github.io/moodle-mod_notetaker/
Other
2 stars 4 forks source link

Special characters are not properly displayed in overview of notes. #15

Open mattgig opened 3 years ago

mattgig commented 3 years ago

When you use special characters like the German Umlauts ä, ö, ü, they are not properly displayed in the overview of notes (the view you get when you press "return to notes":

"für meine Bedürfnisse" instead of "für meine Bedürfnisse"

When you look at an entry individually (view) they are displayed correctly.

jlb224 commented 3 years ago

Thank you for reporting this. I will work on a fix.

mofetdanielsmolkin commented 3 years ago

hello, same issue with not Latin languages. gibberish showen instead of readable text

i found a quick solution in the code: file: mod/notetaker/classes/local/utilities.php line: 148 need to add charset declaration: $htmldom->loadHTML($str); --> $htmldom->loadHTML('<?xml encoding="utf-8"?>'.$str);

thanks in advance, Daniel

jlb224 commented 3 years ago

Hi both, thanks for writing here. My apologies for not pushing a fix sooner. I am just working on getting the code updated to work on 3.11 so will include a fix then. Thanks for your patience