cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Revanth
Associate III
 
3 REPLIES 3
ktrofimo
Senior III
Unicode::fromUTF8( (uint8_t *)utfString, textfieldBuffer, sizeof(textfieldBuffer) );
text field.invalidate();​

Romain DIELEMAN
ST Employee

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

Hi @Romain DIELEMAN​ 

I tried this also. Still its same.

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