EDN Admin
Well-known member
Hi,
I´m building a client application which reads a .txt file on the local computer with a streamreader (encoding set to utf8)
After this, I use a POST operation (contenttype = application/x-www.form-urlencoded)(this is the only coding that works somewhat)
When I get the response back, the swedish characters have been replaced.
These are the code lines:
Dim strR As New StreamReader("c:testmyfile.txt", Encoding.UTF8)
--
Dim objRequest As HttpWebRequest = WebRequest.Create(url)
objRequest.ContentType = "application/x-www-form-urlencoded"
--
Dim objResponse As HttpWebResponse = objRequest.GetResponse()
Please tell me how to fix this.
Thank you
View the full article
I´m building a client application which reads a .txt file on the local computer with a streamreader (encoding set to utf8)
After this, I use a POST operation (contenttype = application/x-www.form-urlencoded)(this is the only coding that works somewhat)
When I get the response back, the swedish characters have been replaced.
These are the code lines:
Dim strR As New StreamReader("c:testmyfile.txt", Encoding.UTF8)
--
Dim objRequest As HttpWebRequest = WebRequest.Create(url)
objRequest.ContentType = "application/x-www-form-urlencoded"
--
Dim objResponse As HttpWebResponse = objRequest.GetResponse()
Please tell me how to fix this.
Thank you
View the full article