Korean output not working using Unicode::snprintf()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-01-11 1:44 AM
Hello,
I want to print Korean in <value> of wild card
The encoding used in CubeIDE is attached as a picture file.
The touchGFX version we use is 4.16.
The initial value entered in wildcard is normally output as "정지".
(textArea and Typographies images are attached.)
"Unicode::snprintf(textMasterAirflowBuffer, TEXTMASTERAIRFLOW_SIZE, "STOP");" -> "STOP" is output.
Unicode::snprintf(textMasterAirflowBuffer, TEXTMASTERAIRFLOW_SIZE, "정지"); -> Fallback Character is output.
Unicode::snprintf(textMasterAirflowBuffer, TEXTMASTERAIRFLOW_SIZE, "%s", "정지"); -> Fallback Character is output.
How can I get Korea to be printed on the LCD normally?
Best regards,
Solved! Go to Solution.
- Labels:
-
TouchGFX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-01-11 2:16 AM
Hi,
You need to add in the Typographies settings the Korean characters or range of characters you will use (just add 정지 in the "Wildcard Characters "tab for example in your case). This step is necessary otherwise TouchGFX will just return the fallback character.
Make sure also that your font handles Korean, I used on my side the Noto Serif KR version because Verdana would not handle 정지.
/Romain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-01-11 2:16 AM
Hi,
You need to add in the Typographies settings the Korean characters or range of characters you will use (just add 정지 in the "Wildcard Characters "tab for example in your case). This step is necessary otherwise TouchGFX will just return the fallback character.
Make sure also that your font handles Korean, I used on my side the Noto Serif KR version because Verdana would not handle 정지.
/Romain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-02-08 5:34 PM
Hi,
Sorry for the late reply because I was working on another project.
Thanks for the reply.
Best regards,
