How to convert file names from
- From: Christian Schneider <christian_schneider_2000 yahoo de>
- To: gtk-app-devel-list gnome org
- Subject: How to convert file names from
- Date: Wed, 20 Jul 2005 13:22:52 +0200 (CEST)
Hallo,
I changed from GTK 2.2.x to 2.6.x. Now my program does
not convert selected files after file selection. Here
my code which did what I want with GTK 2.2.x:
iso_string = (gchar *)
gtk_file_selection_get_filename(filesel );
utf_string = g_convert (iso_string, -1, "UTF-8",
"ISO-8859-1", NULL, NULL, NULL);
Put utf_string into a textview (This is not ok for
example with german charakters like oe (= ö)). Then
convert for opening a file:
iso_string = g_convert (utf_string , -1, "ISO-8859-1",
"UTF-8", NULL, NULL, NULL);
/* Open file with iso_string */
file = fopen (iso_string, "rb");
file == Null if a german special charakter is
involved!
What is to do to make it compatible to GTK 2.6.x?
Regards
Christian Schneider
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]