When I try to insert the ñ in textbuffer TextView the CMD displays the following error:
(textEditor.exe:696): Gtk-CRITICAL **: gtk_text_buffer_emit_insert: assertion g_utf8_validate (text, len, NULL)' failed
Source example (c++ and gtkmm):
Glib::RefPtr<Gtk::TextBuffer> refTextBuffer = textView->get_buffer();
refTextBuffer->set_text("\xA4"); //hex ASCII
refTextBuffer->insert_at_cursor("ñ");