From 33523ddc865d55db1c7e45eca504f97a97aa5ce0 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 14 Mar 2007 19:40:05 +0000 Subject: Now fixed the xml escaping...sigh. --- src/tests/xmlwritetest.cpp | 4 ++-- src/xmlwriter.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/tests/xmlwritetest.cpp b/src/tests/xmlwritetest.cpp index 54c7a80..a22d19d 100644 --- a/src/tests/xmlwritetest.cpp +++ b/src/tests/xmlwritetest.cpp @@ -7,9 +7,9 @@ void fillItIn( XmlWriter &w ) w.addNode("thinglist"); w.addNode("thing"); - w.addProperty("type", "Weapon"); + w.addProperty("type", " ±î´³¸®°êòì¯"); - w.addNode("id", "Klophin Staff", true ); + w.addNode("id", "Klophin²³±¹¸·µ´äêíëã Staff", true ); w.addNode("name", "Klophin Staff", true ); w.addNode("durability", "0.01", true ); w.addNode("size", "0.1", true ); diff --git a/src/xmlwriter.cpp b/src/xmlwriter.cpp index 0c9c7db..56880b6 100644 --- a/src/xmlwriter.cpp +++ b/src/xmlwriter.cpp @@ -67,7 +67,7 @@ std::string XmlWriter::escape( std::string sIn ) { sOut += "&#"; char buf[4]; - sprintf( buf, "%u", (unsigned int)*i ); + sprintf( buf, "%u", (unsigned char)*i ); sOut += buf; sOut += ';'; } -- cgit v1.2.3