How to load Greek letter from XML

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
humorstar
Posts: 25
Joined: Sat Oct 04, 2008 3:50 am

How to load Greek letter from XML

Post by humorstar »

In Dreamweaver, I can copy & paste the Greek letters into an XML file. But if I try to load the XML with IrrXML reader, the Greek letters are not read properly and not displayed. I am using the similar IrrXML usage example in the MeshViewer example.

Is it possible to load the Greek letters and display them? I want to use them in the mathematics equations.

Thank you,
Yoran
Site Admin
Posts: 96
Joined: Fri Oct 07, 2005 8:55 am
Location: The Netherlands
Contact:

Post by Yoran »

you probably need to forcefully save the xml document as UTF-8 or UTF-16 even. using a texteditor that can :)
Valmond
Posts: 308
Joined: Thu Apr 12, 2007 3:26 pm

Post by Valmond »

You might want to check out mbstowcs(...) too so when you load up a UTF-8
file on a *char you can convert it to wchar_t which you can use directly with
Irrlicht font drawing system (ie. draw text on screen).

This is windows stuff, similar functions exists for other platforms.
Post Reply