TsgcHTTPServer › Properties › Charset
Charset applied to the Content-Type header of responses served automatically from DocumentRoot.
property Charset: string read FCharset write FCharset;
(empty string)
Charset is passed to the underlying Indy response as AResponseInfo.Charset whenever a file is served automatically from DocumentRoot, so browsers know how to decode the file's bytes (for example utf-8 or iso-8859-1). It has no effect on responses you build yourself inside OnCommandGet / OnCommandOther — set AResponseInfo.Charset directly in the handler for those. Leave Charset empty to use Indy's own default.
oServer := TsgcHTTPServer.Create(nil);
oServer.DocumentRoot := 'c:\www\files';
oServer.Charset := 'utf-8';
oServer.Active := true;