Expat prints out garbage when I print to screen or file
问题 When I print out information from my XML document I get �� before each line. Here is my XML document. <?xml version="1.0" encoding="ISO-8859-1"?> <note> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note> Here is my code #include <cstdio> #include <expat.h> #include <string> #include <fstream> #include <cstring> using namespace std; void XMLCALL start(void*,const char*, const char**); void XMLCALL end(void*,const char*); void XMLCALL