Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

HTTPRIO UTF8 Delphi 6 Enterprise

4 views
Skip to first unread message

Steve Sharpe

unread,
Mar 29, 2005, 5:43:24 AM3/29/05
to

I am using Delphi 6 Enterprise and a THTTPRIO object to invoke another companies web service and was having a problem sending UTF8 characters such as "Wir bestätigen den Eingang".

When I imported the WDSL file I chose to convert strings to widestrings.

I set HTTPRIO.Converter.Options.soUTF8InHeader to TRUE and
HTTPWebNode.UseUTF8InHeader to TRUE and still didn't work.

Next I tried :-

procedure TdmData.rioTextAnywhereBeforeExecute(const MethodName: String; var SOAPRequest: WideString);
begin
SOAPRequest := StringReplace(SOAPRequest, 'xml version="1.0"', 'xml version="1.0" encoding="utf-8"', [rfReplaceAll]) ;
end;

And this worked.....

Is this a bug in Delphi 6 fixed in later versions?

Is there any better way for me to achieve the same thing?

Thank you for any help....

Steve

0 new messages