> Any idea how to get this optional parameter from the selection owner? Is
> there a library (other than Qt) that can decode it back?

Just checked... It seems this is not really well defined. KDE/Qt apps always 
encode URLs as utf8. I can't really tell you about Gtk/Gnome.

Converting them is rather easy (decoding the octets is trivial), and utf8 is a 
simple encoding. If you don't want to do any work yourself there, you could 
use iconv (see man iconv) to convert it to you character encoding of choice.

Cheers,
Lars

> > But this seems to be a bit more complicated:
> > 1. Gnome doesn't perform the URL encoding (Nautilus sends plain text...)
> > - KDE does... how should I know other then try both decoded and plain
> > version?
>
> That's a bit unfortunate, and IMO a bug in Nautilus (or Gnome). From the
> specs
> (RFC 2483):
>      "2) The remaining non-comment lines shall be URIs (URNs or URLs),
>        encoded according to the URL or URN specifications (RFC2141,
>        RFC1738 and RFC2396). Each URI shall appear on one and only one
>        line"
>
> They clearly say "encoded".
>
> > 2. When KDE encoded some Hungarian characters it used 2 octet
> > encoding for 1 non-Latin character, that is some e' (some hungarian
>
> letter)
>
> > was encoded into smth like %C3%A9. I didn't test it with Hebrew though -
> > did you? Is it the same story? And how does it happen to encode it into 1
> > character into 2 octets?
>
> I guess this is due to the fact, that KDE uses utf8 as character encoding
> for
> the URL. So the URL get's first converted to utf8, and then non ascii chars
> get converted to octets. The text/uri-list mimetype can have an optional
> charset parameter, and I guess that one should be set to utf8 in this case.


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to