TextView showing "?" mark instead of text using STM32 TouchGFX?

1.1k Views Asked by At

I want to fill a textView with a string, after a click on a button. I did every thing correctly but it shows only the "a" character and the other with a fallback character. this is the function that fill the text view buffer enter image description here

The wildcard

enter image description here

The topography

enter image description here

2

There are 2 best solutions below

0
On

You should use Unicode::strncpy() instead of snprintf()

0
On

You can try:

Unicode::strncpy(textArea1Buffer1, x, TEXTAREA1BUFFER1_SIZE);
Unicode::snprintf(textArea1Buffer1, TEXTAREA1BUFFER1_SIZE, "%s", textArea1Buffer1);