Unicode::snprintf string problem
Hi,
I cannot seem to be able to print char array to unicode buffer.
I have set Wildcard ranges to 0-9,A-z (also tried 0x20-0x7E)
I'm trying to display file names in the UI, which have arbitrary and modifyable names.
When I do snprintf with "%s" with a char array, TouchGFX will print ?-marks, character values in the buffer appear to be of values around 25 000. Do I need to convert characters somehow?
Why this results putting numbers ~25000 to the buffer, and thus ?-marks intead of "test"?
char text[] = "test"; //allocate global variable
...
Unicode::snprintf(textAreaItemBuffer, TEXTAREAITEM_SIZE, "%s", text);However, this works fine
Unicode::snprintf(textAreaItemBuffer, TEXTAREAITEM_SIZE, "%s", touchgfx::TypedText(T_TEST).getText());And printing numbers using %d also works.
What is wrong with snprinting char array with "%s"?
Thanks!
