Jon A. Cruz esordì:
*sigh* I find it *very* annoying that the GTK+ API uses different encodings all over but doesn't even mark which is used or needed where. I realize that probably comes from them changing things after the fact and then only testing on English (or Western) systems.
GTK+ and GLib use exclusively UTF8. The exception in the file-related function are due to the fact that there is no sane way to use any enconding different from the one the filesystem expect, expecially on unix systems... :)
You should use the g_filename_to_utf8() and g_filename_from_utf8() utility function to convert enconding between the internal rapresentation (UTF8) and the filesystem rapresentation (usually locale dependent).
I agree this should be written in big fonts at the top of the file-related utilities in GLib... :(