Fwd: "International Domain Names" support in KDE

Thiago Macieira thiagom at wanadoo.fr
Mon Jan 27 23:54:19 GMT 2003

Marc Mutz wrote:
>Just make sure you expose the encoding, decoding and normalization or
>else KMail will have to re-invent the wheel, since it looks as though
>punycode will be the encoding for local-part and domain of

Duh. Re-reading your post I noticed I had forgotten to answer the question.

Yes, the functions are exposed. They are in Waldo's KIDNA namespace (kidna.h) 
and in my KDE::Network::Resolver class. The normalisation I refer to is the 
process of encoding and then decoding of a hostname -- or, just the nameprep 
for Unicode strings and the decoding for ACE-encoded ones.

Yes, it's code duplication. We'll sort that out before releasing anything. 
Besides, KDE::Network::Resolver is largely unfinished for the moment.

Note that my functions at least carry a big warning about the exposing of 
ACE-encoded hostnames to the user. That shouldn't happen unless absolutely 

  Thiago Macieira - UFOT Registry number: 1001
 thiagom at mail.com
   ICQ UIN: 1967141  PGP/GPG: 0x6EF45358
     Registered Linux user #65028
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20030128/9a5d11a1/attachment.sig>

More information about the kde-core-devel mailing list