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

2002-05-15 Thread Sven Neumann
Hi, calmar [EMAIL PROTECTED] 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

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

2002-05-15 Thread Dov Grobgeld
You have to UTF8 encode the characters. E.g. to input the characters you mention below you have to insert the following char* buf: \327\224 \327\226 \327\252 \327\224 \327\232 \327\233\n This buffer was created by doing: echo ä æ ú ä ê ë | iconv -f iso8859-8 -t utf8 | od -c and

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

2002-05-15 Thread Sven Neumann
Hi, calmar [EMAIL PROTECTED] writes: 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. i tried something like this: //code begin char ** end;