Simple Q ?

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
Jinto
Posts: 24
Joined: Mon Oct 13, 2003 2:59 am
Location: Ukraine

Simple Q ?

Post by Jinto »

Simple question:
English letters from editbox are properly saved in the XML file. But Russian letters from same editbox in the file XML recorded incorrectly !!! Help solve the problem!

Code: Select all

 
wchar_t * fdf=L"";
swprintf(fdf,255,tmp_editbox->getText());
 
 
xmlWriter->writeElement(L"Personal",  true,L"one", fdf);    
 
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Simple Q ?

Post by CuteAlien »

Did you assign memory to fdf? Otherwise the content will be pretty random. Maybe try using tmp_editbox->getText() directly instead of trying to copy it into fdf.

If that doesn't help please give some more information:
- Which Irrlicht version
- Which operating system
- Small example which we can compile to reproduce the problem.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply