UTF-8 characters displaying in text-boxes but not listviews/dropdowns/edit-boxes

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

  • UTF-8 characters displaying in text-boxes but not listviews/dropdowns/edit-boxes

    Hi,

    I recently purchased emWin Font Converter to add special characters to my character set in emWin.

    I have successfully displayed UTF8 characters in text boxes using the following code for example:

    GUI_UC_SetEncodeUTF8();
    ...
    TEXT_SetText(hItem, "Δa");

    However, if I do the same for other dialog types, it is not successful:

    GUI_UC_SetEncodeUTF8();
    ...
    LISTVIEW_SetItemText(hItem, 0,0, "Δa");
    ...
    DROPDOWN_AddString(hItem, "Δa");
    ...
    EDIT_SetText(hItem, "Δa");

    In each case, the text "a" is displayed instead of "Δa".

    Is this a known limitation of emWin or is there any way I can display UTF8 characters in all dialog types?

    Regards,
    Steven.
  • Hi Steven,

    I've attached a short sample to demonstrate how to use UTF8 characters, please have a look at it.

    Regards,
    Sven
    Files
    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.