Display backspace symbol on Button

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

    • Display backspace symbol on Button

      Hello,

      I wanted to display back space symbol on a button. The unicode hex is 232b.
      How do i set the button text with back space symbol?

      I tried setting the string to "\x232b" but get a compile error "too big for character"

      Thanks

      Regards,

      Anuj
    • Hi,

      there are a few things to obey when displaying non-ASCII characters.

      1. You have to enable UTF-8 support by calling GUI_UC_SetEncodeUTF8().
      2. The character you want to display must be in the font you are using.
      3. The characters in the string must be UTF-8 encoded. You can use this tool to encode the string.

      Note that the character \x232b exceeds the size of an 8-bit char. The character encoded in UTF-8 you have to use is: \xe2\x8c\xab.

      Best regards,

      Florian
      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.