Gtk-CRITICAL **: gtk_text_buffer_emit_insert: assertion `g_utf8_validate



I got this error message:
Gtk-CRITICAL **: gtk_text_buffer_emit_insert: assertion `g_utf8_validate (text, len, NULL)' failed
My code:
 
            ostringstream str;
            str << "SDES("<< source.getNetworkAddress() <<");\n";

            Glib::RefPtr refTextBuffer = notebook->textview_sdes->get_buffer();
            Gtk::TextBuffer::iterator iter = refTextBuffer->get_iter_at_offset(0);
            refTextBuffer->insert(iter, Glib::convert (str.str(), "UTF-8", "ISO8859-1"));
without Glib::convert (str.str(), "UTF-8", "ISO8859-1") - only with str.str() is emited the same error message.
Could anyone help me?

View this message in context: Gtk-CRITICAL **: gtk_text_buffer_emit_insert: assertion `g_utf8_validate
Sent from the Gtkmm forum at Nabble.com.


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