Hi,
Im newbie in C++ and xerces-c and I`ve tried do something like
serialization with DOM from xerces-c and I have that problem:

I have that code:

#include<xerces/util/XMLString.hpp>
#include<iostream>

using namespace std;
XERCES_CPP_NAMESPACE_USE

int main (int argv, char** argc) {
        .
        .
        .
        // xerces initialization and etc.
        
        char* chars = argc[1];
        cout << "before: " << chars << endl;
        XMLCh* xmlChars = XMLString::transcode (chars);
        cout << "after:  " << XMLString::transcode (xmlChars) << endl;
        
        return 0;
}

I put for first argument in invoke of the program some string with
polish entities (ISO 8859-2) like: ąęćśżźół 
And in one system with xerces-c 2.7 this works good, and output is:

before: ąęćśżźół
after:  ąęćśżźół

But in other system with xerces-c 2.6 this doesnt work, and output is:

before: ąęćśżźół
after:  

But I have to do it on system with xerces-c 2.6.

Have anybody known why is that?
Thanks for any answer and I apolognize for my poor english.

Reply via email to