38 const std::string t(s);
55 const auto bytes = s.
toUtf8();
56 return std::string(bytes.begin(), bytes.end());
sf::U8String toUtf8() const
static String fromUtf8(T begin, T end)
std::string toUtf8(const sf::String &s)
Encode an sf::String back to UTF-8 bytes.
sf::String utf8(const std::string &s)
Decode a UTF-8 byte string for display.