3
當我嘗試插入textbuffer的ñ的TextView的CMD顯示以下錯誤:如何在textbuffer gtkmmTextView中編寫字母?
(textEditor.exe:696): Gtk-CRITICAL **: gtk_text_buffer_emit_insert: assertion g_utf8_validate (text, len, NULL)' failed
來源例(C++和gtkmm的):
Glib::RefPtr<Gtk::TextBuffer> refTextBuffer = textView->get_buffer();
refTextBuffer->set_text("\xA4"); //hex ASCII
refTextBuffer->insert_at_cursor("ñ");