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



hi,

Sven sven gimp org wrote:
>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;

if ( ! (g_utf8_validate  (  pointer_string_to_validate, -1 , (const char **)
end) ) )
{
 **end=  (const char) "." ;
}

// end

in order to just replace one occurencd of  no uft8-character with a point
(as the first step)
but i get a access violation.
So where may is the best location to look for some examples, so  can have a
look at working code and learn from it?


thanks a lot
calmar




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