[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [idn] The layers and character handling in DNS



At 13.10 -0500 01-02-17, Keith Moore wrote:
>  > How does gethostbyname() *know for sure* what the character set of its
>>  argument is?  Answer: it doesn't, because there is no way that it can.
>
>Let me suggest a different answer:
>
>gethostbyname() knows what the character set of the argument is
>because, by definition, it is ASCII.

FYI: In the IDNA algorithm, nameprep and ace encoding is done 
_before_ gethostbyname() is called, for exactly the reasons Keith 
lists.

   paf