Re: view cant' show special characters (at least not with gtk_text_buffer_set_text() so far)



Hi,

"calmar" <mac calmar ws> writes:

> i have a gtk_text_view_new() in my program
> and i want to put there some text with this function:
> gtk_text_buffer_set_text ();
> 
> as long as i have normal characters in the buffer, it's works properly.
> when there are any special letters (which tend to be everywhere unless in
> english i guess (something like this: ä  æ ú ä ê ë ), it won't put the
> buffer to the text view anymore..it's just empty.

the text put into a GtkTextView (or any other GTK+-2.0 widget)
absolutely needs to be UTF-8 encoded. Glib provides a number of
functions that help you to convert from and to other encodings.


Salut, Sven



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