Thanks for the detailed answer!
On Fri, 15 Oct 2004 12:24 am, Joe Orton wrote:
On Thu, Oct 14, 2004 at 08:04:35PM -0600, David Barrett wrote:Does "apr_sockaddr_info_get" (along with all the functions that take hostnames) accept UTF-8 hostnames?
No, not really. To do non-ASCII DNS you need to use IDNA to map the
hostnames to valid ASCII strings: there's an excellent implementation in
GNU libidn.
Recent versions of glibc support a flag to do this inside getaddrinfo, so it would be feasible for apr_sockaddr_info_get to grow a flag to do that internally, but it would be rather Linux-specific for the time being.
joe