apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Orton <jor...@redhat.com>
Subject Re: UTF-8 hostnames?
Date Fri, 15 Oct 2004 06:10:43 GMT
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

Mime
View raw message