Special Characters within display.newText

Hi Everyone first post! :slight_smile:
Thank you all for your time regarding this question i searched the forums but haven’t found my answer.

I am making a game and using display.newtext()
within the text i have Spanish characters that when run come up incorrectly example the Spanish word ¿Dónde
in the simulator they show up with a diamond question mark.
?D?nde.

Thanks for any advice.

[import]uid: 99036 topic_id: 20718 reply_id: 320718[/import]

It should work if your font has the characters included that you need [import]uid: 84637 topic_id: 20718 reply_id: 81352[/import]

Hi Danny Thanks for the response
I am using Arial Rounded MT Bold as a font. In word these characters seems to be coming up.

how can I know for sure if the font has those characters?
when opening the TTF in windows i do not see these characters but if i press ALT 165 example in word or paint the character comes up.

Thank you [import]uid: 99036 topic_id: 20718 reply_id: 81877[/import]

I use notepad++ for coding, so unless your using the same, you will probably have to do this differently.

But it looks to me like your lua files are encoded in ANSI. To get special characters to appear in the app you will have to change the encoding to ‘UTF-8 Without BOM’.

Once you re-compile your app with the edited lua files, it should all work fine and dandy.
[import]uid: 69826 topic_id: 20718 reply_id: 81882[/import]

Thank you TandG I too use notepad ++
I changed the preferances in SETTINGS - PREFERNCES - New Document - UTF-8 Without BOM.
I then created a new document copied my code from the ANSI to the new document with UTF-8 encoding. I reran the code and the characters appear correctly. [import]uid: 99036 topic_id: 20718 reply_id: 81891[/import]

No problem, glad to hear its working for you now :slight_smile: [import]uid: 69826 topic_id: 20718 reply_id: 81892[/import]

How can limit input text to A-Z and 0-9 only? no punctuations, no emoji etc.
maybe giving an array A,B,C,D,E,F… [import]uid: 96683 topic_id: 20718 reply_id: 81894[/import]