Skip to main content
lshuh.1
Associate II
March 26, 2021
Question

How to use GDK encoding to convert unicode encoding

  • March 26, 2021
  • 0 replies
  • 530 views

I know i can use cc936.c of FATFS, but I think this is not a good method, because it will take up more memory and will be very slow in efficiency.

I would like to ask if touchGFX has a built-in method to directly convert GDK encoding to Unicode encoding. I want to print Chinese.

for example:

     touchgfx_printf("0x%x",'我');

Output:

    0xCED2

"0xCED2" is the GDK code

I want to convert it to unicode encoding Unicode: 0x6211

Is there a quick way to convert?

This topic has been closed for replies.