Skip to main content
Revanth
Associate II
September 9, 2021
Question

Hello, I need to display a Russian text which have to be updated dynamically from code. But, it is just displaying "????" even after placing range in typography. Is there a way to update non-english text during run time rather than using Resources.

  • September 9, 2021
  • 3 replies
  • 1040 views

..

This topic has been closed for replies.

3 replies

ktrofimo
Senior III
September 9, 2021
Unicode::fromUTF8( (uint8_t *)utfString, textfieldBuffer, sizeof(textfieldBuffer) );
text field.invalidate();​

Romain DIELEMAN
ST Employee
September 9, 2021

Hi,

What font are you using ? Make sure the characters are handled by that font.

Instead of Resources you could use wildcards with Single Use textAreas where you update the text with just a printf like this

Unicode::snprintf(textArea1Buffer, TEXTAREA1_SIZE, "%s", yourText);

/Romain

Revanth
RevanthAuthor
Associate II
September 9, 2021

Hi @Romain DIELEMAN​ 

I tried this also. Still its same.

Even the font can handle the characters when Resource is being used.