host_idna_to_ascii


Description:


[ Version ( since = "3.16" ) ]
public string? host_idna_to_ascii (string? host)

Converts IDN (Internationalized Domain Name) into ASCII representation.

If there's a failure or the host has only ASCII letters, then a copy of host is returned.

Parameters:

host

Host name, with or without non-ascii letters in utf8

Returns:

Newly allocated string with only ASCII letters describing the host or null, when the host is null. Free the returned string with g_free when no longer needed.


Namespace: Camel
Package: camel-1.2



2022 vala-language.org