[PATCHES] Improvements to the International Domain URLs

Waldo Bastian bastian at kde.org
Wed May 28 09:19:12 BST 2003


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

On Wednesday 28 May 2003 00:06, Thiago Macieira wrote:
> The only problem left for now is the encoding of the hostnames in error:/
> URLs. The sub URL works fine, but the error *text* becomes garbled when
> characters outside the user's locale are used. The reason for that is that
> when KURL detects that the default encoding will lose information, it opts
> to encode the query in UTF-8. That would be ok, except that the decoding no
> longer knows it's UTF-8.

When constructing error urls the encoding of the query part should be 
hard-coded to UTF-8 then, and when extracting the query it should inform KURL 
that the query is utf-8 encoded. For that KURL::queryItem(s) should take an 
encoding hint.

> Therefore, when trying a fictitious machine like www.multimǽdia.fr, I get
> the error message that www.multimǽdia.fr doesn't exist. Note that this
> doesn't happen if the user's locale is UTF-8 already.

Cheers,
Waldo
- -- 
bastian at kde.org -=|[ SuSE, The Linux Desktop Experts ]|=- bastian at suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+1HEFN4pvrENfboIRAgZ4AKCcnbSYhdzgsO4VmSYwAUiLb2WfqwCdHaxv
XdRm4M9RuFpFi6yZJ0Zo5vg=
=Lduj
-----END PGP SIGNATURE-----





More information about the kde-core-devel mailing list