Re: to decode url string?



On Tue, Apr 09, 2002 at 02:19:00AM +0900, Kang Jeong-Hee wrote:
(I'm in gnome2)

if dnd with nautilus I get url-encoded filename.
multichar broken into %nn%nn.

gnome_vfs_uri_to_string() used to get the string.
so I expected gnome-vfs-2.0 provide decode api, but seems not.

is there a function to decode url string?
---end quoted text---

I don't know, I didn't look *-2.0 yet, but if you didn't find something like at
the api, it may not have..
But you can write your own, or just take the source from 1.2 and copy this
function, since it should have no dependecies.. (at least from what I see..)
If you see, you have %nn, where nn is an hexadecimal number representing
a single caracter.. you can have a half-table of that at
% man ascii
it's ugly to implement it, but it's not dificult..

hope that helped,
-- 
Marcelo R Leitner <mrl netbank com br>
ICQ #: 29966851



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]