Home » U++ Library support » U++ Core » Small bug in DeXml
Small bug in DeXml [message #20284] |
Fri, 06 March 2009 20:00 |
phirox
Messages: 49 Registered: December 2007
|
Member |
|
|
I use XML for storing settings, and even communication through sockets. But I found a weird thing, you can't put a \n in a string and then parse it back. Eventually I discovered this is because of the function DeXml() in the file Core/XML.cpp, in this part:
else if((byte)*s < ' ' && *s != '\n') result.Cat(NFormat("&#x%02x;", (byte)*s));
This should be changed to the code below.
else if((byte)*s < ' ') result.Cat(NFormat("&#x%02x;", (byte)*s));
I don't see any reason why it should not be coded.
|
|
|
Goto Forum:
Current Time: Mon May 20 05:35:23 CEST 2024
Total time taken to generate the page: 0.00894 seconds
|