Re: utf-8 and cyrilic in GtkLabel
| From: | Frank M. Kromann | Date: | Fri, 22 Nov 2002 17:53:48 +0000 |
| Subject: | Re: utf-8 and cyrilic in GtkLabel | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-2706@lists.php.net to get a copy of this message | ||
PHP-GTK Can do this four you.
On windows you can use php-gtk.codepage = CP1251 in your php.ini file and
the convertion will be automated.
- Frank
> Hello All,
>
> I have such code:
>
> > ---- begin
>
> ...[skipped]...
>
> >$res = "Some cyrilic characters";
> >$popup = $main->get_widget("ErrorPopup");
> >$err_text = $main->get_widget("ErrorMsg");
> >$res_conv = iconv("CP1251", "UTF-8", $res);
> >$err_text->set_text("$res_conv");
> >$popup->connect("delete-event", "on_ErrorPopup_destroy");
> >$popup->show();
>
> ...[skipped]...
>
> >$main = &new GladeXML('gui/stm.glade');
> >$main->signal_autoconnect();
>
> Gtk::main();
>
> > ---- end
>
> and my window contain nothing!
> but echo function works fine...
> What am I doing wrong?
>
> --
> Best regards,
> Alexander Kuznetsov
>
>
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>