We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi everyone,
I have a question about adding support for foreign languages in my product (touch display).
I want to add Chinese/Russian/German and a few other languages.
My code workflow is as follows:
I have a string literal (in English) assigned to a variable. When the string should appear on the screen, I get each character's ASCII code and from there I go to an image array that represents that letter.
I noticed that the "Unicode" I get for the foreign languages is not the real Unicode of the character (for Strings in English I do get the correct ASCII value) .
I tried using wchar_t and adding __STDC_UTF_16__ / __STDC_UTF_32__ symbols but that doesn't seem to fix the issue.
__STDC_UTF_16__
__STDC_UTF_32__
Is there a way to get the real Unicode of characters from a string literal in Keil (v5.37 - C compiler v5.06 update 7) in order to add foreign language support? Or is there any other way to implement what I'm trying to do ?