Problem with special character when calling a web service

Aug 12, 2009 at 2:57 PM

I am calling a external web service using the iLove SharePoint Designer Actions, but all special characters are desapearing, like if I write "descrição", I get "descrio" in my external database. What am I missing?

 

Jorge Borges

Nov 19, 2009 at 2:31 PM

I have the same problem. When I get data from Call Webservice Action, special character are replaced by Unicode REPLACEMENT CHARACTER. What encoding is used for calling webservice?

May 25, 2010 at 11:29 AM

I've fixed it.

Look through the file CallWebServiceActivity.cs and find  this string:

WebClient webClient = new WebClient();

and insert after it this line:  

webClient.Encoding = System.Text.Encoding.UTF8;

Jan 3, 2011 at 11:17 AM

I have the same problem. A downloaded the source from here. Loaded the project in VS2008, and wrote the new line.
After I build the project, I have the dll file.
In my Sharepoint 2007 Server I changed the dll in the assembly directory, but nothing changed. (IIS reset, server restart) The webservice action is working, but the special characters are replaced..
Thanks for help!