[Gtk-sharp-list] TextView and UTF8
20 Sep 2003 12:43:50 +0200
thanks for your answer... although it didn't solve my problem.
maybe this is a Text.Encoding problem and therefore mono related (not
On Sat, 2003-09-20 at 12:02, Iñigo Illán wrote:
> I'm not sure if this is going to solve your problem, but try to use
> System.Environment.NewLine instead the '\n' hardcoded char.
> ChatBuf.Text += System.Environment.NewLine + "[ip]: " + strReceived;
> El sáb, 20 de 09 de 2003 a las 10:58, Yves Ineichen escribió:
> > hi all,
> > i want to add some received data to a TextView
> > Byte received = new Byte;
> > //...
> > String strReceived = System.Text.Encoding.UTF8.GetString(received);
> > ChatBuf.Text += "\n[ip]: " + strReceived;
> > asserts:
> > (<unknown>:1956): Gtk-CRITICAL **: file gtktextbuffer.c: line 543
> > (gtk_text_buffer_emit_insert): assertion `g_utf8_validate (text, len,
> > NULL)'
> > failed
> > same with:
> > UTF8Encoding u8 = new UTF8Encoding();
> > ChatBuf.Text += "\n[ip]: " + u8.GetString(received);
> > why the assertion? the string should be utf8 encoded - or where is the
> > mistake?
> Gtk-sharp-list maillist - Gtkemail@example.com
::to know recursion, you must first know recursion::