Skip to main content
kb24
Senior
July 28, 2021
Question

STM32CubeIDE can't convert TouchGFX wildcard characters correctly

  • July 28, 2021
  • 2 replies
  • 3089 views

Hi,

I added wildcard characters (ç,Ç,ğ,Ğ,ı,İ,ö,Ö,ş,Ş,ü,Ü) to TouchGFX , if I set text in there it can show these characters correctly.

When I set text in code like this:0693W00000D0tPcQAJ.jpgbuffer gets filled with wrong numbers and it shows all question mark. Normally "ŞŞşş ÇÇçç" must be 5353737320c7c7e7e7 but its like that:0693W00000D0tSbQAJ.jpg and when I convert it to string its "ŞŞşş Ç". How can I solve this problem? Thank you.

This topic has been closed for replies.

2 replies

MM..1
Chief III
July 28, 2021
kb24
kb24Author
Senior
July 30, 2021

Ok its my bad I didn't know about that.

0693W00000D142AQAR.jpg 

Percent encoding fits my data. So CubeIDE converting correctly but it cant show correct letters.

0693W00000D143cQAB.jpgThis is when I set text in TouchGFX, it can show correctly.

0693W00000D144BQAR.jpgThis is when I set text with the code below.

	Unicode::snprintf(textNotBuffer,TEXTNOT_SIZE,"ŞŞşş ÇÇçç");
	textNot.invalidate();

What should I do to solve this? Thank you.

MM..1
Chief III
July 30, 2021
kb24
kb24Author
Senior
August 5, 2021

Isn't is the bug of STM32CubeIDE ? Unicode is using UTF16 but STM32CubeIDE is converting it to UTF8.