Einzelnen Beitrag anzeigen

Youuuu

Registriert seit: 9. Okt 2016
60 Beiträge
 
Delphi 11 Alexandria
 
#1

Indy.get Umlaute = ?

  Alt 29. Apr 2017, 16:25
Hi,

ich habe ein Problem mit Indy momentan. Sobald ich den Quelltext per http.get mir hole, werden die Umlaute als normales "�" dargestellt.


Delphi-Quellcode:
with http do begin
        HandleRedirects := True;
        AllowCookies := False;
        RedirectMaximum := 10;
        Request.UserAgent := useragent;
        Request.Accept := 'text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1';
        Request.AcceptCharSet := 'iso-8859-1, utf-8, utf-16, *;q=0.1';
        Request.ContentEncoding := 'UTF-8';
        Request.ContentType := 'application/x-www-form-urlencoded';
      end;
      source := (http.Get( url) );
Kann hier jemand Abhilfe schaffen?

Geändert von Youuuu (29. Apr 2017 um 16:55 Uhr)
  Mit Zitat antworten Zitat