GTK2: Character conversion problem...



Hi,

I am reading a file from disk and I add it to a GtkTextBuffer. If the
file I am loading is containing some special characters like some danish
characters GtkTextBuffer fails with gtk_utf8_validate.

How can I convert the data read from disk to utf8 ?? I could not find
the answer in the API docs.

Regards,
Janus N. Tøndering

-- 
Janus Nørgaard Tøndering        
email: janus bananus dk, j nus person dk or u011014 daimi au dk

"Would you buy a car with the hood welded shut?"
-Phil Hughes, Linux Journal Magazine





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