Read the statement by Michael Teeuw here.
German "Umlaute" (ä, ü, ö, ß) in compliments module
-
@beck0r I’ve got at least one “ö” in my compliments and it works; not sure why, though. You can try using an external .json file for your compliments, since thats what I did.
-
Ok so here’s what I did to get that going
- At first created my own .json file named “custom_complis.json” at the following path
/MagicMirror/modules/default/compliment
-
Added my compliments to the external file by using the syntax described here https://github.com/MichMich/MagicMirror/tree/develop/modules/default/complimentst
-
Changed my config.js to…
{ module: "compliments", position: "lower_third", updateInterval: '20000', config: { remoteFile: 'custom_complis.json' } },
- Restart MM
- At this point the “umlauts” we’re still shown as unknown characters
- Connected myself to the pi via WinSCP and browsed to my custom .json file
- Opened my “custom_complis.json” file with notepad++ and changed the encoding to “UTF-8”
- Restart MM -> Working
Thank you
-
errr… after a restart of the pi the custom file doesn’t load anymore :-(
I don’t get it…can somebody help me? -
@beck0r I guess you changed something ;) just restarting doesn’t brake anything.
- So, what do you see? Standard compliments? Nothing? Error message?
- Does it work with compliments embedded into config file?
- Could you post config and remote compliments file?
-
@Anhalter42
Sorry I was a little bit frustrated after a long day in front of the PC… I have validated my code against JSONLint aaaaaaaaaand… a single quotation mark " was missing in the middle of the file ;)