cancel
Showing results for 
Search instead for 
Did you mean: 

Cyrillic symbos, UTF-8 and TouchGFX

EEuge
Senior

Hello, I from Russia and I use cyrillic symbols.

In touchGFX Designer I use cyrillyc symbols without problems.

But if I type cyrillic symbols in IDE, in codefiles

Mytext="Cyrillic_Text";

I get "?????????" on touchGFX gadget.

I try to translate codefiles to UTF-8 - same result: "?????????"

How to solve this problem?

12 REPLIES 12

HI

What file we have to include for this.For me it is showing expected an expression

SGasp.1
Senior

Hi @EEuge​ .. did you solve the problem ? i am facing the same issue as you.. in touch gfx words in Cyrillic are working.. but when I try to do this

    const char* parArea4[5][6] = {
    		                     { "Preheating",
    								"Ready",
									"      ",
									"Baking",
									"Extra time",
									"Extra time?"
                                 },
    						     { 	"Preriscaldo",
    							     "Pronto",
								     "      ",
									 "Cottura",
									 "Extra time",
									"Extra time?"
    							 },
								 { 	"Prechauffage",
								     "Pret",
						              "      ",
									  "Cuisson",
									  "Extra time",
									"Extra time?"
								 },
								 { 	"Предварительный нагрев",
									"Pronto",
								     "      ",
									 "Выпечка",
									 "Extra time",
									  "Extra time?"
								 },
								 { 	"Preriscaldo",
									"Pronto",
						            "      ",
									"Cottura",
								    "Extra time",
									"Extra time?"
								 }
    };
 
uint8_t tipolingua =  3; //cyrillic 
textArea4.setColor(touchgfx::Color::getColorFrom24BitRGB(236, 209, 18));//extra time?
				Unicode::strncpy(textArea4Buffer, parArea4[tipolingua][5], Unicode::strlen(parArea4[tipolingua][5])+1);
				textArea4.invalidate();

on the display i see a lot of question marks??

How can i fix it ?

Thanks

SGasp.1
Senior

Hi @EEuge​ .. were you able to solve the issue ? How did you do?