[Linux] writing XML File, i get a binary and no text file

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
sir_gon
Posts: 13
Joined: Mon Oct 23, 2006 12:38 am
Contact:

[Linux] writing XML File, i get a binary and no text file

Post by sir_gon »

When i write an XML File on windows, i get a text file (this is normal). But on Linux (Ubuntu Dapper/Edgy/Feisty and Opensuse 10.2), myfile.xml is saved as a binary :shock:

When i read myfile.xml with Irrlicht, has no problems :shock:, but when i want to open myfile.xml with kate or nano, they warn me because the file is corrupted or is a binary.

If i convert to text, looks likes a normal text file, except because it has a space between each character.

This happens since I proved irrlicht 1.1 up to 1.3.1 happening through 1.2 and 1.3

¿This is normal? ¿Can be changed?
Mi blog y Portafolio: http://devgon.wordpress.com
Image
Image
datamagik
Posts: 26
Joined: Wed Feb 14, 2007 11:25 pm
Location: Bar Harbor, Maine USA

Post by datamagik »

I sounds like you may be writing the internal 16 bit wide character format in the Linux version. This would explain why a simple text editor might believe it was a binary file, and why you're seeing spaces between characters.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

On Linux it should write UTF-32 files. It was reported to be working correctly, so maybe try to change the text format. Or use less, it has working UTF-32 support. Any real XML browser should also support those files.
CuteAlien
Admin
Posts: 9716
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Most linux editors (and also some other tools like 'less' and 'grep') do not yet work with utf-32. The only editor I know which will work is vi, but without even trying I'm quite sure emacs will also do...
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