UNICODE in TREEVIEW_InsertItem()

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • UNICODE in TREEVIEW_InsertItem()

    Hello! Can i use unicode characters text in the node or leaf of TREEVIEW widget? I want to use unicode to display file name list in TREEVIEW widget. But function

    C Source Code

    1. TREEVIEW_ITEM_Handle TREEVIEW_InsertItem(TREEVIEW_Handle hObj,int IsNode,TREEVIEW_ITEM_Handle hItemPrev,int Position,const char GUI_UNI_PTR * s);

    function uses a pointer to char. The file name may consist of cirilic characters.
  • Hi,

    All text related functions of emWin (except GUI_UC_DispString()) are based on UTF8. If text contains characters above 0x7F our recommendation is using UTF8 encoded text.

    Regards, Jörg
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.