Hello guys.
I write you cause i’ve some problems with code .newText.
I must insert accents and special words on display, but corona don’t accept them. What can i do?
You need to make sure the text editor that you are using supports UTF-8 characters. Normally you would just type them in or copy/paste them into your string, for instance:
local myText = display.newText("¡This should work! éá", 100, 100, “Helvetica”, 20 )
should just work. However if your text editor is not using UTF-8 and saving files in UTF-8 this probably won’t work, but it’s your editor, not Corona SDK. Also if you are using custom fonts, not all fonts support all the various diacritic letters.
Rob
Thanks.
The problem was text editor. I changed it and corona now read accents and special words.
Thanks again for help.
You need to make sure the text editor that you are using supports UTF-8 characters. Normally you would just type them in or copy/paste them into your string, for instance:
local myText = display.newText("¡This should work! éá", 100, 100, “Helvetica”, 20 )
should just work. However if your text editor is not using UTF-8 and saving files in UTF-8 this probably won’t work, but it’s your editor, not Corona SDK. Also if you are using custom fonts, not all fonts support all the various diacritic letters.
Rob
Thanks.
The problem was text editor. I changed it and corona now read accents and special words.
Thanks again for help.