Hi all
I have two projects - one "base" project written in ASP .NET and the other a "legacy" project written in ASP.
The following code (in C#) displays any/all special characters passed to it.
If I try to translate this into straight asp - it won't display the special characters.
Here's the code:
If anyone would prefer that I post this in the ASP.NET forum - please let me know - I just thought here would be best as the prob is on the ASP side.
Thanks as always
Craftor

I have two projects - one "base" project written in ASP .NET and the other a "legacy" project written in ASP.
The following code (in C#) displays any/all special characters passed to it.
Code:
string postData = Server.UrlEncode("<?xml version=\"1.0\"?>" +
"<in2_message>" +
"<action>Request</action>" +
"<messagetype>SRAU</messagetype>" +
"<user>" +
"<mode>E</mode>" +
"<userid>flower6</userid>" +
"<name>Testß</name>" +
"<surname>Userï</surname>" +
"</user>" +"</in2_message>");
ServerXMLHTTP30Class http = new ServerXMLHTTP30Class();
http.open "POST","[URL unfurl="true"]http://david/webservicestranslation/default.aspx",[/URL] false,"","");
http.send("apilogin=in2corporate&apipwd=password&data=" + postData);
Response.Write(http.responseText);
Here's the code:
Code:
Dim postData
Dim http
set http = server.CreateObject("MSXML2.ServerXMLHTTP.3.0")
postData = Server.URLEncode("<?xml version=""1.0""?>" & _
"<in2_message>" & _
"<action>Request</action>" & _
"<messagetype>SRAU</messagetype>" & _
"<user>" & _
"<mode>E</mode>" & _
"<userid>flower6</userid>" & _
"<name>Testß</name>" & _
"<surname>Userï</surname>" & _
"</user>" & _
"</in2_message>")
http.open "POST","[URL unfurl="true"]http://david/webservicestranslation/default.aspx",[/URL] false, "", ""
http.send "apilogin=in2corporate&apipwd=password&data=" & postDataResponse.Write
http.responseText
If anyone would prefer that I post this in the ASP.NET forum - please let me know - I just thought here would be best as the prob is on the ASP side.
Thanks as always
Craftor