is_ascii_encoded
Description:
Tests if hostname
contains segments with an ASCII-compatible encoding of an Internationalized Domain Name.
If this returns true, you should decode the hostname with to_unicode before displaying it to the user.
Note that a hostname might contain a mix of encoded and unencoded segments, and so it is possible for is_non_ascii and is_ascii_encoded to both return true for a name.
Parameters:
hostname |
a hostname |
Returns:
true if |
Namespace: GLib.Hostname
Package: glib-2.0