How to input Chinese character in text field? (DEF-3629)

I input Chinese character in text field, it displays blank character.

I am programming on Windows, not test yet on IOS and Android.

You mean that when you type Chinese characters in a field in the editor nothing is shown? Have you checked the All Chars checkbox in the font?

2 Likes

in the editor I have seen it shown in a field. But I build the project, in runtime I have not seen it.
TIM%E6%88%AA%E5%9B%BE20181115105502 TIM%E6%88%AA%E5%9B%BE20181115105619

Can you please confirm that you have checked the All Chars checkbox?

1 Like

Yes, of course. I checked.
TIM%E6%88%AA%E5%9B%BE20181115163129

Ok, can you please share the font together with some sample text so that I can try to reproduce it?

1 Like

chinese_font.zip (7.6 MB)

i.e 你好
I already have tested, it works on mobile, but Windows.

Thanks. I’ll take a look. Are you using the font in a label or in a gui text node? If you’re using a label it could be that it’s on the same z-value as something else and ends up behind.

I am using the font in a gui text node.

I tried both a label and a gui text node. It works on OSX and HTML5:


Going to check on Windows as well.

And it works on Windows:

Next step would be that you share a minimal repro case here.

1 Like

Thank you. Do you input character in the runtime ?

Ah, no, I used a static text node and label. Will try setting the text at run-time instead.

1 Like

And it works at run-time meaning that the font cache is working:

So I’m guessing we’re talking keyboard input of Chinese text right? And text input worked on Android but not on Windows?

Yes, text input worked on Andorid but not on Windows. Can you give me a sample Code ?

I tried on OSX now with text input as well:

Code:
chineseinput.zip (7.6 MB)

Thank you, I check it now.

it not works, maybe on OSX it works but not works on Windows.

Yep, I can confirm that this is a bug. Created ticket: DEF-3629

2 Likes