Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 11:19

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[VB] GET REQUEST - Falsches Encoding ?

Discussion on [VB] GET REQUEST - Falsches Encoding ? within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1

 
elite*gold: 0
Join Date: Mar 2012
Posts: 1,947
Received Thanks: 255
[VB] GET REQUEST - Falsches Encoding ?

Hallo, ich versuche mit HttpWebRequest den Quelltext des Forum's auszulesen dies Funktionieret auch wunderbar nur werden alle Sonderzeichen als Fragezeichensymbol dargestellt.

Code:
 Dim Request As HttpWebRequest = CType(WebRequest.Create(Target), HttpWebRequest)
        Request.Method = "POST"
        Request.ContentType = "text/html; charset=ISO-8859-1"
        Dim Post As String = ""
        Dim byteArray() As Byte = Encoding.UTF8.GetBytes(Post)
        Request.ContentLength = byteArray.Length
        Dim DataStream As Stream = Request.GetRequestStream()
        DataStream.Write(byteArray, 0, byteArray.Length)
        DataStream.Close()

        Dim Response As HttpWebResponse = Request.GetResponse()
        DataStream = Response.GetResponseStream()
        Dim reader As New StreamReader(DataStream)
        Dim ServerResponse As String = reader.ReadToEnd()
        reader.Close()
        DataStream.Close()
        Response.Close()
Screen
Graphicscore is offline  
Old 05/23/2013, 17:27   #2
 
tolio's Avatar
 
elite*gold: 2932
The Black Market: 169/1/0
Join Date: Oct 2009
Posts: 6,966
Received Thanks: 1,097
musste den antwortstream anders dekodieren, utf8 sollte "richtig" sein
tolio is offline  
Reply


Similar Threads Similar Threads
[PHP] Encoding, chr, ord
05/20/2013 - Web Development - 2 Replies
Hi epvp! Ich habe in PHP einen String, Gwujw¢M}{p}¨Sƒvƒ® die Unicode/Ascii-repräsentation des Strings ist 71|119|117|106|119|162|77|125|123|112|125|168|83| 402|129|118|402|174
Encoding TXT in Media.pk2
09/13/2012 - SRO Private Server - 1 Replies
del
AFX H.264 Encoding
08/10/2009 - Video Art - 4 Replies
Hallo, Also das Encoden ist bei AFX von den Einstellungen her ja ziemlich eingeschränkt... Gibt es eine Möglichkeit diese Einstellungen zu erweitern? Am besten wär jedoch ein AviSynth Plugin :p, um extern zu encoden. Gibt es sowas? Bedanke mich schonmal im Voraus.
Encoding problem :(
05/19/2008 - General Coding - 1 Replies
I have a problem with encoding when installing PostreSQL, when im choosing a encoding it says "It doesnt belong to my location! :mad: :mad:" Can someone help me finding a encoding for my language, Norwegian! Well, thats about it? Please respond quickly :) Thanks
ScriptVessel Encoding
12/29/2006 - Conquer Online 2 - 36 Replies
Anyone know what way the new copartner(script vessel) is encoded/encrypted/packed? If so, that'd be great if you could tell me, so I can get to getting a cracked version up. Thanks, -Andy



All times are GMT +1. The time now is 11:22.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.