Indy TIdHTTPResponseInfo charset support
Does anyone know how to set charset for Indy TIdHTTPResponseInfo?
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=koi8-r">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
I have tried to set charset as following:
var aResponseInfo : TIdHTTPResponseInfo;
And then I send a Response in non-english characters (ASCII $81H-$FFH), such as KOI8-R, BIG5, UTF-8
aResponseInfo.ResponseText :='.... ÍøÍ ....';
aResponseInfo.ResponseText := '..... ' + GBToUTF(' <b>ÖÐ¹ú</b>') + '....';
As long as I send any ASCII between $80H - $FFH, Browser hangs.
Maybe I have to use other class, such as TidCustomHTTPServer.
I think that you could post this support request to Indy newsgroups, Indy web forums, or Indy-Dev-Public.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.