Re: GTK2: Character conversion problem...



On Sat, Jul 27, 2002 at 07:40:30PM +0200, Janus N. Tøndering wrote:
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

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

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

Hi,

Try using g_locale_to_utf8() to convert it.  This question has popped up
several times recently, is it or should it be in a FAQ somewhere?

-Scott

-- 
We are not humanity.
-B



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