Stefan Göppert wrote:
> Hi,
> 
> i got a big problem using the Thttpappserv component. My html-sites
> are UTF8 but german html-entities (üäö) are not displayed correct
> (data form database). I've installed the latest snapshot of ics. Here
> is some codefor the main page:   
> 
> procedure TUrlHandlerIndex.Execute;
> var
>   order,
>   reval,
>   search,
>   Headers  : String;
> begin
>   ExtractURLEncodedValue(Params, 'key', search);
>   ExtractURLEncodedValue(Params, 'order', order);
>   if search <> '' then
>   begin
>     if order = '' then order := 'number';
>     reval := data.doSearch(search,order);
>     Headers     := NO_CACHE;
>     AnswerPage('', Headers, '/index.html', nil, ['applicationName',
> applicationName,'table',reval]); 
>   end
>   else
>   begin
>     Headers     := NO_CACHE;
>     AnswerPage('', Headers, '/index.html', nil, ['applicationName',
> applicationName,'table',reval]); 
>   end;
>   Finish;
> end;
> 
> 
> What to do?

Try the new CodePage parameter of AnswerPage added in rev. #647
and pass CP_UTF8. Does that help?

-- 
Arno Garrels


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to