On Mac it works just fine.
However on Windows the following:
#define APP_NAME "WideCharIssue" juce::NativeMessageBox::showOkCancelBox(juce::AlertWindow::AlertIconType::WarningIcon, APP_NAME, juce::String::formatted("Thank you for trying %s.\nAs you see JUCE has some bugs in handling defines with native dialogs.", APP_NAME), nullptr, nullptr);
Would eventually result:
The issue is within the ::formatted as debugging shows that the String itself is already encoding incorrectly (under Windows…).
My Region settings are:
- Current System Locale: English (United States)
- Home Location: United States.