to_ascii


Description:

public string to_ascii (string hostname)

Converts hostname to its canonical ASCII form; an ASCII-only string containing no uppercase letters and not ending with a trailing dot.

Parameters:

hostname

a valid UTF-8 or ASCII hostname

Returns:

an ASCII hostname, which must be freed, or null if hostname is in some way invalid.


Namespace: GLib.Hostname
Package: glib-2.0