mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 14:21:04 +08:00
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.
|
||||
|
||||
// Convert to UTF-8 encoding.
|
||||
std::basic_string<std::uint8_t> utf8Title;
|
||||
Utf32::toUtf8(title.begin(), title.end(), std::back_inserter(utf8Title));
|
||||
const std::basic_string<std::uint8_t> utf8Title = title.toUtf8();
|
||||
|
||||
const Atom useUtf8 = getAtom("UTF8_STRING", false);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user