hi , is there a way that you can type in the editbox an utf8 encoding ?
I can set it utf8 when using the setText function like this
textbox->setText((CEGUI::utf8*)"Đăng nhập"));
but when I try to type something utf8 in , it's disappear , is there any setup am I missing ?
sorry for my bad English .
CEGUI utf8-input on EditBox[Solved]
Moderators: CEGUI MVP, CEGUI Team
CEGUI utf8-input on EditBox[Solved]
Last edited by feint1980 on Mon Mar 27, 2017 14:50, edited 1 time in total.
Re: CEGUI utf8-input on EditBox
You obviously didnt read the forum guidelines. You give us absolutely no info about what version you use or on what platform. Nobody can help you like this.
Did you even compile CEGUI with unicode support?
Did you even compile CEGUI with unicode support?
CrazyEddie: "I don't like GUIs"
Re: CEGUI utf8-input on EditBox
sorry for that , I use window os ( Window 7 64 bit) , CEGUI 0.8.4 .
what do you mean compile the cegui in unicode support ? compile the cegui lib with unicode encoding in Visual Studio ?
also the font demo is the same , it show the full font in Vietnamese , but when I try to type in (it is a multiline editbox btw ) the character still disapear , I hope my post doesn't anoying you .
what do you mean compile the cegui in unicode support ? compile the cegui lib with unicode encoding in Visual Studio ?
also the font demo is the same , it show the full font in Vietnamese , but when I try to type in (it is a multiline editbox btw ) the character still disapear , I hope my post doesn't anoying you .
Re: CEGUI utf8-input on EditBox
So you are saying the Font demo displays vietnamese text fine but you can't input vietnamese text there? If it displays vietnamese text then you did compile it with unicode CEGUI setting (see CMake settings) so you did everything right so far.
CrazyEddie: "I don't like GUIs"
Re: CEGUI utf8-input on EditBox
thank you , is there a function I have to call after I create a editbox or something ?
because if I use the setText function , it display the character OK , but when I start typing some Vietnamese in , it's disappear .
also I read the Demo , did I miss something ? .
because if I use the setText function , it display the character OK , but when I start typing some Vietnamese in , it's disappear .
also I read the Demo , did I miss something ? .
Re: CEGUI utf8-input on EditBox
also here is the picture .
the demo ( old and the 0.8.7)
![Image](http://imgh.us/1_4126.jpg)
my project
![Image](http://imgh.us/2_2939.jpg)
Edited : I already swap the new dll i built to the project , still nothing happend
the demo ( old and the 0.8.7)
![Image](http://imgh.us/1_4126.jpg)
my project
![Image](http://imgh.us/2_2939.jpg)
Edited : I already swap the new dll i built to the project , still nothing happend
Re: CEGUI utf8-input on EditBox
If it works via setText then the issue is how characters are injected. Have you tried to debug that part? It might be this was not tested well in certain setups. The demo you showed - what does it use? You didnt give us any info on that - the log would have provided it.
GLFW, SDL and the others might inject inputs differently.
GLFW, SDL and the others might inject inputs differently.
CrazyEddie: "I don't like GUIs"
Re: CEGUI utf8-input on EditBox
thank you , I will have it debuged right away .
Re: CEGUI utf8-input on EditBox
indeed , the injection was failed because the SDL2 removed the unicode from sdl1.2 , so I used the custom unicodeset and it work now , thank you
Who is online
Users browsing this forum: No registered users and 14 guests