character sets and filenames
"Kristian G. Kvilekval" <[email protected]> Tue, 09 Mar 2004 17:19:45 -0800
| Newsgroups | gmane.comp.audio.zinf.devel |
|---|---|
| Message-ID | <[email protected]> |
I've seen some problems when scanning filenames with foreign characters and I was hoping somebody would have some suggestions. Say, for example, I have /home/music/luiz_macedo-bossa_electromagn<E9>tica.m3u Currently this is failing to be encoded as a URL by the routine FilePathToURL which in turn is implemented with g_filename_to_uri >From reading the URI/URL documentation, I would expect this to be encoded as /home/music/luiz_macedo-bossa_electromagn%E9tica.m3u My initial reaction is that it's a bug in glib, but on the other hand the documentation says for g_filename_to_uri: filename : an absolute filename specified in the encoding used for filenames by the operating system. And the filename passed in is probably not considered legal (but actually works fine). Would someone like to clarify? -- email:[email protected] office:(805)893-4276 http://www.cs.ucsb.edu/~kris ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click