Convert wstring to Unicode String
I have a multi-language graphics project which requires the use of characters beyond the standard ASCII set. I have not found a working method to convert C++ wstring to TouchGFX::Unicode. I have attempted the following:
Unicode::strncpy(txtTitleBuffer, headerText.c_str(), buf_size1); //No matching funtions...
Unicode::strncpy(txtTitleBuffer, headerText, buf_size1); //No matching funtions...
Unicode::snprintf(txtTitleBuffer, buf_size1, "%s", headerText.c_str()); //Compiles without error but only shows 1st character.
Unicode::snprintf(txtPasswordTitleBuffer, buf_size1, "%s", headerText); //Compiles without error but only shows ??? which is the default undefined font character.
If possible I would like to stay with the standard C++ type for the strings and convert as it is about to be displayed as manipulating TouchGFX::Unicode is a bit clunky.
