Use sf::String::toUtf8()
This commit is contained in:
parent
9dc2e541e8
commit
6b503a726d
@ -928,8 +928,7 @@ void WindowImplX11::setTitle(const String& title)
|
|||||||
// There is however an option to tell the window manager your Unicode title via hints.
|
// There is however an option to tell the window manager your Unicode title via hints.
|
||||||
|
|
||||||
// Convert to UTF-8 encoding.
|
// Convert to UTF-8 encoding.
|
||||||
std::basic_string<std::uint8_t> utf8Title;
|
const std::basic_string<std::uint8_t> utf8Title = title.toUtf8();
|
||||||
Utf32::toUtf8(title.begin(), title.end(), std::back_inserter(utf8Title));
|
|
||||||
|
|
||||||
const Atom useUtf8 = getAtom("UTF8_STRING", false);
|
const Atom useUtf8 = getAtom("UTF8_STRING", false);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user