Re: GtkFileChooser::get_filenames / get_uris override

From: Date: Thu, 09 Mar 2006 11:08:03 +0000
Subject: Re: GtkFileChooser::get_filenames / get_uris override
References: 1 2  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-2552@lists.php.net to get a copy of this message
> They have to be converted. I tried the following, which doesn't work > unfortunately: > cp_ret = phpg_from_utf8(files->data, strlen(files->data), This can't work, as it isn't real utf-8: ----------------- This means that while you can pass the result of gtk_file_chooser_get_filename() to open(2) or fopen(3), you may not be able to directly set it as the text of a GtkLabel widget unless you convert it first to UTF-8, which all GTK+ widgets expect. You should use g_filename_to_utf8() to convert filenames into strings that can be passed to GTK+ widgets. ----------------- -- Regards/MfG, Christian Weiske

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.gtk.dev (#2552) next »