from native textfield to display.newtext: how to determine character/font set for proper display

In my app, I am using a native textfield to capture keyboard input and when the user is done (submit the text), I break down each character of the text string into display.newText objects to make them float on the screen.

It works fine when I use my normal keyboard (english), but if I switch to for example something a bit more exotic like Russian, the native textfield (when entering the text) shows the text properly (russian characters, etc), but the resulting individual newText objects show blank characters (or jibberish). 

How can I ensure that the newText objects display the characters in the right way (dynamic font selection?)?

PS I don’t care about emojis and displaying them in full color; for now, I’d like to simply have the ability to work with russian, chinese and other character sets properly…

This thread might be of use to you:

https://forums.coronalabs.com/topic/42019-split-utf-8-string-word-with-foreign-characters-to-letters/

Rob

Thanks Rob! Excellent piece of code that serves my purpose… I looked for threads but did not find this one…

This thread might be of use to you:

https://forums.coronalabs.com/topic/42019-split-utf-8-string-word-with-foreign-characters-to-letters/

Rob

Thanks Rob! Excellent piece of code that serves my purpose… I looked for threads but did not find this one…