Hi all! As you can see in the top - i have problems with displaying Cyrylic symbols in CEGUI elements. For the leraning CEGUI basics i use the "Basic Tutorial" from the wiki and go throw it! All work's fine, but cyrylic symbols...
When i try to send button name from compiller - the button displayed with title like "€Г,‡;€"...
When i trying to send button name from XML file - The program is return Debug error...I realy need to xml layouts...
So, any one can help me?
Problems with CEGUI & Cyrylic
- crioto
- Halfling
- Posts: 59
- Joined: Fri Aug 11, 2006 8:34 pm
- Location: Bishkek, Kyrgyzstan
- Contact:
Problems with CEGUI & Cyrylic
Do your work, don't be stupid
- Blakharaz
- Gnoblar
- Posts: 19
- Joined: Wed Jun 02, 2004 8:51 pm
- Location: Potsdam, Germany
Did you save your files in UTF-8 encoding? I just used to put German special characters in CEGUI windows, but cyrillic characters should be the same basically. Especially the XML files should have an encoding fitting the header
A stack trace of your error could be helpful too.
Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
Coder in the Pantheon team - creators of Rastullahs Lockenpracht
- crioto
- Halfling
- Posts: 59
- Joined: Fri Aug 11, 2006 8:34 pm
- Location: Bishkek, Kyrgyzstan
- Contact:
Okay! Let's look at my xml file:
Now let's look on part of C++ code(where i trying to use XML file) :
And when i starting my app i receive
And for finish - above is part from CEGUI log:
Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<GUILayout>
<Window Type="DefaultWindow" Name="Tutorial Gui">
<Window Type="TaharezLook/Button" Name="Quit">
<Property Name="UnifiedPosition" Value="{{0.35,0},{0.45,0}}" />
<Property Name="UnifiedSize" Value="{{0.3,0},{0.1,0}}" />
<Property Name="Text" Value="THERE IS MUST BE CYRYLIC SYMBOLS" />
</Window>
</Window>
</GUILayout>
Code: Select all
mEditorGuiSheet = CEGUI::WindowManager::getSingleton().loadWindowLayout((CEGUI::utf8*)"Tutorial Gui.xml");
mGUISystem->setGUISheet(mEditorGuiSheet);
CEGUI::PushButton* quitButton = (CEGUI::PushButton*)CEGUI::WindowManager::getSingleton().getWindow((CEGUI::utf8*)"Quit");
Runtime Error!
This application has requested the Runtime to terminate it in an unusual way.
And for finish - above is part from CEGUI log:
(Error) Exception: ExpatParser::parseXMLFile - XML Parsing error 'not well-formed (invalid token)' at line 7
11/06/2007 20:38:47 (Error) WindowManager::loadWindowLayout - loading of layout from file 'Tutorial Gui.xml' failed.
Do your work, don't be stupid
- crioto
- Halfling
- Posts: 59
- Joined: Fri Aug 11, 2006 8:34 pm
- Location: Bishkek, Kyrgyzstan
- Contact:
- Blakharaz
- Gnoblar
- Posts: 19
- Joined: Wed Jun 02, 2004 8:51 pm
- Location: Potsdam, Germany
Are you sure you saved your XML file in UTF-8 encoding? On Windows you could use an editor like Notepad++ for converting.
Coder in the Pantheon team - creators of Rastullahs Lockenpracht