Switch to Unicode double byte and hex escape sequences

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

  • Switch to Unicode double byte and hex escape sequences

    I am using the method described in the emWin manual for creating strings which escape from single byte to double byte unicode format (Chinese in this case). E.G as in the example:

    GUI_DispStringHCenterAt(
    "some ascii text" /* standard ascii or Latin1 etc */
    GUI_UC_START /* switch to double byte format */
    "\x4E\x3B\x83\xDC\x53\x55" /* 3 Chinese double byte chars expressed in hex format */
    GUI_UC_END /* return to single byte format */
    );

    Ok this works but when you have several pages of Chinese strings to format as hex escape chars, it becomes impractical even if the hex chars are script generated.

    In short, has anyone found a better solution? I am using emWin 3.0