hostname_utils_requires_ascii


Description:


[ Version ( since = "3.44" ) ]
public bool hostname_utils_requires_ascii (string hostname)

Check whether the hostname requires conversion to ASCII.

That can be when a character in it can look like an ASCII character, even it being a Unicode letter. This can be used to display host names in a way of invulnerable to IDN homograph attacks.

Parameters:

hostname

a host name

Returns:

true, when the hostname should be converted to an ASCII equivalent, false, when it can be shown as is.


Namespace: Camel
Package: camel-1.2