c - Display string with newline characters in GtkTextView -
i used code display string gtktextview object:
btsel(database, word, meaning, 50000, &rsize); //b-tree gtk_text_buffer_set_text(buffer, meaning, -1);
problem showed entire string without parsing newline characters, result ended this:
nguyễn\nanh\ntuấn
at first thought prolem use of unicode characters, tried using following code test if true:
strcpy(buffer, "nguyễn\nanh\ntuấn"); gtk_text_buffer_set_text(buffer, meaning, -1);
and time result was:
nguyễn anh tuấn
after hours searching google in vain, ended here. pls me, , thank in advance (^^
my bad english.
Comments
Post a Comment