Re: Gtk2::Entry and accentuated chars




Still have problems with the accentuated characters coming from a widget.

If I try to print them, everything is OK but when I try to store them to a
mysql DB, I get garbage instead of accentuated chars.
However if I define a variable containing a string with such characters I
get them correctly in the DB.

I tried to encode them to iso-8859-1 with Encode without any result.

Has anyone an idea ?

regards,

Fred.

-
On Sun, 2003-08-17 at 07:35, Fred. Oger wrote:
How canI get the Gtk2::Entry's get_text function return the
accentuated characters correctly ? As it uses UTF-8 encoding
internally, I suppose I have a conversion to something else, but how
can I do this conversion ?

it's return type is const gchar * so you should be getting the UTF-8
string to begin with. unfortunately i barely speak/write english
(correctly) and it's my primary/only language so i can't help you much
more than that as i have no experience with utf-8 stuff.

-rm






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]