Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   IdHttp Umlaut Probleme (https://www.delphipraxis.net/157983-idhttp-umlaut-probleme.html)

Grolle 1. Feb 2011 12:31

IdHttp Umlaut Probleme
 
Hallo,

ich habe ein Problem mit der Rückgabe eines Webservice. Umlaute werden im Memo falsch dargestellt (im Browser korrekt!). Quelltext:
Delphi-Quellcode:
procedure TForm1.Button1Click(Sender: TObject);
var
  sl : TStringlist;
begin
  sl := TStringList.Create;
  sl.Values['id']:='4';
  sl.Values['name']:='oinki-ö';
  sl.Values['email']:='oinki@web.de';
//  memo1.Lines.Text := IdHTTP1.Post('http://localhost/ci2/index.php/websvc/example/users/format/xml',sl);
  memo1.Lines.Text := IdHTTP1.Get('http://localhost/ci2/index.php/websvc/example/users/format/xml');
  sl.Free;
end;
Hilfe :roll:

DeddyH 1. Feb 2011 12:37

AW: IdHttp Umlaut Probleme
 
Hast Du es einmal mit verschiedenen Encodings versucht?

Grolle 1. Feb 2011 12:45

AW: IdHttp Umlaut Probleme
 
Hi,

hat sich erledigt (UTF8ToUnicodeString). Danke :mrgreen:


Alle Zeitangaben in WEZ +1. Es ist jetzt 15:29 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz