![]() |
THTTPRIO wsdl utf-16
Hallo,
es geht um folgendes Problem. Ich habe eine wsdl datei importiert. Funktioniert ganz gut. Im HTTPRIO1.OnBeforeExecute Event sehe ich das der XML Request als erste Zeile "<?xml version="1.0" encoding="utf-16" standalone="no"?>" hat. Wie kann ich es auf utf-8 ändern? Folgendes hat nicht geholfen:
Delphi-Quellcode:
HTTPRIO1.Converter.Options := HTTPRIO1.Converter.Options + [soUTF8InHeader];
HTTPRIO1.HTTPWebNode.UseUTF8InHeader := true; |
AW: THTTPRIO wsdl utf-16
Du könntest den Stream patchen mit Utf-16, wenn Du eh schon ein OnBeforeExecute verwendest. Du musst aber sicherstellen, dass die XML-Daten dann auch utf-16 sind.
|
AW: THTTPRIO wsdl utf-16
Probiere mal:
Delphi-Quellcode:
HTTPRIO1.Converter.Encoding:='UTF-8';
HTTPRIO1.HTTPWebNode.UseUTF8InHeader:=true; |
AW: THTTPRIO wsdl utf-16
Super. Das ist die Lösung.
Vielen Dank. |
Alle Zeitangaben in WEZ +1. Es ist jetzt 14:49 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz