bad encoding in msgbox

Hello,

I’ve got a problem with one of my macros. I’m showing a string with Unicode characters in a msgbox.

MsgBox "ščř"

But all I get in the message box are ??? s - until I open the BASIC IDE. Once I open the IDE, the message box starts showing the Unicode chars correctly, until I restart LibreOffice.

What might be the cause of this?

Obviously a font problem.
Your LibO Version? Your OS/version? How are your setting for > ‘Options’ > ‘LibreOffice’ > ‘Fonts’? Are there explicit replacemkents? Which settings in the bottom region of the dialogue?
In what way is the execution of the sub triggered? Or is the MsgBox called by a function?
I quick-tested the issue with LibO Calc V 5.1.0.2 under Win 8.1 and can not confirm your statements.