| 416 | } |
| 417 | |
| 418 | std::string encodeHostname(const sf::String& hostname) |
| 419 | { |
| 420 | // TODO: Support proper Punycode conversion if there is a need for it |
| 421 | // https://datatracker.ietf.org/doc/html/rfc3492 |
| 422 | return hostname.toAnsiString(); |
| 423 | } |
| 424 | |
| 425 | sf::String decodeHostname(const std::string& hostname) |
| 426 | { |