ServerXMLHTTP40 and charset
I am trying to post some data from a VB.net application to an ASP
page. This is the routine to post data:
sPostString = "CD=" & Now & "&OWNNumber=" & Globals.OwnNumber &
"&Pos=" & oSMS.Position & "&DT=" & oSMS.DateTime & "&Num=" &
oSMS.Number & "&Text=" & oSMS.Text
oXMLHTTP = New MSXML2.ServerXMLHTTP40
With oXMLHTTP
.setTimeouts(30000, 30000, 120000, 300000)
.open("POST", URL & "?" & sPostString, False)
Try
.send(sPostString)
Catch ex As Exception
sResult = "Error Posting"
LogFile.WriteRow("Error Posting - " &
Replace(ex.message, vbCrLf, ""))
End Try
End With
The problem is that the ASP page does not read correctly the posted
variables, for example if Text=poich , the "" is not decoded
correctly, ASP side. I think it is something related to the character
sets, but I have tried all the different combinations and nothing
seems to work...
Any help please?
Regards,
D.

