Can Cornoa sdk show chinese?

Hi all, 

I have a question, I want to show Chinese in Corona. But I can only show some question mark on the screen.

Can anyone give me some help?

Thank you.

If you save file in UTF-8 format and your system or custom font supports UTF-8 characters then no problem. On my simulator I see all texts from file below

local textChinese = display.newText( “你好,彼得在这里。”, 50, 100, native.systemFontBold, 20 )

local textJapanese = display.newText( “こんにちは、ここでピーター。”, 50, 200, native.systemFontBold, 20 )

local textKorean = display.newText( “안녕하세요, 여기에 피터.”, 50, 300, native.systemFontBold, 20 )

I try this code in my simulator and the cellphone, Both of them cannot show correctly.

Can you give me more help?

thank you piotrz55

Do you have file UTF-8 encoded? What editor you use? And what Corona build?

I use notepad++, and the corona build is 2013.8.22

do I need convert the code in the notepad++?

Thank you very much

In notepad there is “Format” option in menu bar. Open it and select UTF-8. Also I would suggest you to update Corona to latest build 2013.1202.  There is no such build as 2013.8.22 - you meant 2013.822 probably.

thank you, My corona build is 2013.1196, I will try to adjust my notepad++. 

now I set the notepad++ , It works ,thank you .

Make sure that on device font supports asian characters.

Thanks a lot.

Have a good day

If you save file in UTF-8 format and your system or custom font supports UTF-8 characters then no problem. On my simulator I see all texts from file below

local textChinese = display.newText( “你好,彼得在这里。”, 50, 100, native.systemFontBold, 20 )

local textJapanese = display.newText( “こんにちは、ここでピーター。”, 50, 200, native.systemFontBold, 20 )

local textKorean = display.newText( “안녕하세요, 여기에 피터.”, 50, 300, native.systemFontBold, 20 )

I try this code in my simulator and the cellphone, Both of them cannot show correctly.

Can you give me more help?

thank you piotrz55

Do you have file UTF-8 encoded? What editor you use? And what Corona build?

I use notepad++, and the corona build is 2013.8.22

do I need convert the code in the notepad++?

Thank you very much

In notepad there is “Format” option in menu bar. Open it and select UTF-8. Also I would suggest you to update Corona to latest build 2013.1202.  There is no such build as 2013.8.22 - you meant 2013.822 probably.

thank you, My corona build is 2013.1196, I will try to adjust my notepad++. 

now I set the notepad++ , It works ,thank you .

Make sure that on device font supports asian characters.

Thanks a lot.

Have a good day