Fwd: "International Domain Names" support in KDE

Thiago Macieira thiagom at wanadoo.fr
Wed Jan 22 23:02:53 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dirk Mueller wrote:
>On Mit, 22 Jan 2003, David Faure wrote:
>> Does anyone know which parts of KDE would need to me modified to work
>> with the new "International Domain Names" standard from the IETF?
>
>Almost everything. KURL for example doesn't use utf8 encoding, so you cannot
>access any domain that has nonascii characters.
>
>a nice testcase is www.müller.com. The domain exists and has a webpage, but
>you can't browse it with konqueror.

Actually, that's a problem in KURL. I've done a quick check in other places,  
and they all use QStrings and don't care about the contents. They just 
happily feed it to the lookup procedures.

I've also taken a look at what happens if I do a lookup on müller.com:
$ host www.müller.com
www.m\252ller.com has address 198.41.1.35

In principle, Latin 1-encoded hostnames already work. You could even use it in 
Konqueror, because in the range U+0080 to U+00FF, it won't discard the 
character. For hostnames with letters out of the Latin 1 range, KURL drops 
the extra chars and replaces them by ?

So I tried to telnet into it:
$ telnet www.müller.com 80
telnet: www.müller.com: Name or service not known
www.müller.com: Unknown host

How come? Quick check reveals:
$ host ftp.müller.com
ftp.m\252ller.com has address 198.41.1.35
$ host -t aaaa ftp.müller.com
Host ftp.m\252ller.com not found: 3(NXDOMAIN)
$ host ftp.müller.com
Host ftp.m\252ller.com not found: 3(NXDOMAIN)

It isn't Konqueror's or KDE's fault, then. It won't work in Konqueror because 
the DNS server resolving it (Network Solution's) says it doesn't exist when 
we do an IPv6 lookup, which is always done first. And even if we did the v4 
one first, any subsequent lookups would fail.

- -- 
  Thiago Macieira - UFOT Registry number: 1001
 thiagom at mail.com
   ICQ UIN: 1967141  PGP/GPG: 0x6EF45358
     Registered Linux user #65028
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+LyMjM/XwBW70U1gRAvTBAKChqIBdHMcFGfVJfuhBkF8xlwphMgCeJAe2
I1fBtXQzCyjESZONZlk9mnc=
=l/7z
-----END PGP SIGNATURE-----





More information about the kde-core-devel mailing list