Skip to content

Commit

Permalink
fix proper initialization gsoap(utf8)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandra iancu committed Apr 9, 2014
1 parent bdd329b commit a3f36ee
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions connection_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,9 @@ class connection_handler
{
m_proxy.soap_endpoint = m_location.c_str();

soap_omode(&m_proxy, SOAP_XML_DEFAULTNS);
soap_omode(&m_proxy, SOAP_XML_DEFAULTNS| SOAP_C_UTFSTRING);
soap_imode(&m_proxy, SOAP_C_UTFSTRING);

if ( -1 == m_session_id ) {
begin_session();
m_proxy.userid = m_user.c_str();
Expand Down Expand Up @@ -381,8 +383,10 @@ class connection_handler
int execute ( char* statement )
{
m_proxy.soap_endpoint = m_location.c_str();
soap_omode(&m_proxy, SOAP_XML_DEFAULTNS);
//soap_omode(&m_proxy,SOAP_XML_INDENT);

soap_omode(&m_proxy, SOAP_XML_DEFAULTNS| SOAP_C_UTFSTRING);
soap_imode(&m_proxy, SOAP_C_UTFSTRING);

if ( -1 == m_session_id ) {
begin_session();
m_proxy.userid = m_user.c_str();
Expand Down

0 comments on commit a3f36ee

Please sign in to comment.