[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: RE: KURL encoding question
From: Yves Arrouye <yves () realnames ! com>
Date: 2000-03-13 18:32:35
[Download RAW message or body]
If we say that everything should be properly encoded before it's given to
KURL (something I heartily agree with), it does mean that we want to change
a number of applications that don't do it, right? For example, Konqueror
builds URLs directly from user's input (and then konq_searcher gets it as
straight Unicode, and will encode it for URL later), or do things like:
openURL(0L, KURL(QDir::homeDirPath().prepend("file:")));
My understanding here is that QDir::homeDirPath() can be in any charset,
depending on the user settings, so I wonder 1/ how to cope with that
correctly, and 2/ shouldn't KURL::encode(QDir::homeDirPath()) be used
instead? I believe many applications using URLs must be doing this, no (I
just picked Konqueror because that's the one I'm the most familiar with, and
could fix easily)?
Another question is: do we guarantee/require that the decoded URL is UTF-8?
That would be very convenient to write generic code, but will certainly
require changes when one builds a URL from a filename. What will happen
here? How do you distinguish between Japanese/Arabic/Russian/etc...
filesystems?
YA.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic