|
From: andrew7 <bd...@us...> - 2007-06-10 04:01:27
|
Update of /cvsroot/smartwin/SmartWin/tests/SmartSOAPWsdlParser In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv11641 Modified Files: Main.cpp Log Message: Unicode conversion Index: Main.cpp =================================================================== RCS file: /cvsroot/smartwin/SmartWin/tests/SmartSOAPWsdlParser/Main.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- Main.cpp 5 May 2006 17:21:44 -0000 1.4 +++ Main.cpp 10 Jun 2007 04:01:24 -0000 1.5 @@ -38,7 +38,8 @@ // Code file boost::tuples::tuple< SmartUtil::tstring, SmartUtil::tstring > retVal = WsdlParser::instance().fetchWsdlFromUrl( SmartUtil::Ascii2CurrentBuild::doConvert( wsdl, SmartUtil::ConversionCodepage::ANSI ) ); - std::string tmpOuput = retVal.get< 1 >(); + std::string tmpOuput = AsciiGuaranteed::doConvert( retVal.get< 1 >(), ConversionCodepage::ANSI ); + for ( std::string::iterator idx = tmpOuput.begin(); idx != tmpOuput.end(); ++idx ) @@ -52,7 +53,7 @@ code << tmpOuput; // Wsdl file - tmpOuput = retVal.get< 0 >(); + tmpOuput = AsciiGuaranteed::doConvert( retVal.get< 0 >(), ConversionCodepage::ANSI ); for ( std::string::iterator idx = tmpOuput.begin(); idx != tmpOuput.end(); ++idx ) |