special character + loading layouts

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
Zoldan
Just popping in
Just popping in
Posts: 9
Joined: Fri Oct 21, 2005 12:44

special character + loading layouts

Postby Zoldan » Fri Oct 21, 2005 12:49

Hi,

i tried to load a XML layout with some german special characters in it, but they were just cut out of the text.
If I set the text of a statictext with the ->settext command it works fine, but it doesnt load the chars from a file ...

can anyone help me?

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Re: special character + loading layouts

Postby lindquist » Fri Oct 21, 2005 12:55

are you saving your XML in UTF8 format?

User avatar
Zoldan
Just popping in
Just popping in
Posts: 9
Joined: Fri Oct 21, 2005 12:44

Re: special character + loading layouts

Postby Zoldan » Fri Oct 21, 2005 13:08

i'm not using any xml editor, but plain text editor ... so there are ä,ö,ü,etc. in the file if u mean that ...

edit: i just tried to use celayouteditor, i completly crashes if i enter a text containing speciel chars :(

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Re: special character + loading layouts

Postby lindquist » Fri Oct 21, 2005 13:33

You must save the file in UTF8 encoding.
Not ascii. Not iso-8859-1.. UTF8!

User avatar
Zoldan
Just popping in
Just popping in
Posts: 9
Joined: Fri Oct 21, 2005 12:44

Re: special character + loading layouts

Postby Zoldan » Fri Oct 21, 2005 13:43

ok that works .... thx!


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 8 guests