Hi,
I have a well known TranscodingException in my xerces code below, because of
a special hyphen character but I don't know how to resolve it.
I'm using xerces-c-3.1.1 on a Centos 5 with kernel 2.6.18.
Could you help me, please?
Thanks a lot,
Sen
-------------------------------------------------------------------------------
// compile with: g++ Test1.cpp -o Test1 -lxerces-c -Wl,-rpath
-Wl,/usr/local/lib/
#include <xercesc/util/PlatformUtils.hpp>
#include <xercesc/dom/DOMLSParser.hpp>
using namespace XERCES_CPP_NAMESPACE;
int
main(int __argc,
char* __argv[])
{
try
{
XMLPlatformUtils::Initialize();
}
catch (const XMLException& e)
{
return(-1);
}
char * sample = "problem with this character: —";
// throws an TranscodingException because of the character '—' !!
XMLCh* xml_sample = XMLString::transcode(sample);
XMLString::release(&xml_sample);
XMLPlatformUtils::Terminate();
return(0);
}
------------------------------------------------------------------------------
--
View this message in context:
http://old.nabble.com/TranscodingException-tp32089859p32089859.html
Sent from the Xerces - C - Users mailing list archive at Nabble.com.