I created a patch including a couple of unicode-related fixes:
On Windows, wchar_t and std::wstring are 16 bit characters. Therefore, UnicodeStr in translations.cpp was broken for larger codepoints. I removed it and replaced it with sf::String::fromUtf8.
If your locale's default encoding is not UTF-8, translated course descriptions were not interpreted as UTF-8 (neither for the line breaking algorithm nor for rendering).
If your locale's default encoding is not UTF-8, non-ASCII characters in the credits screen were incorrectly rendered. This was already fixed on trunk (on revision r731), I've ported the relevant changes to the 0.8 branch.
Hi there,
I created a patch including a couple of unicode-related fixes:
Last edit: Thomas Glamsch 2023-07-08
Thanks. Pushed.