Hello list.
The following cgi script shows "??" in the browser if cwstring is declared, and works as expected if the declaration is removed. Is there something I can change in order to work with widestrings, cwstring and special chars? fixes_2_4 with linux.
Thanks.
Joao Morais
============================
{$mode objfpc}{$H+}
uses
Classes, SysUtils, httpDefs, custcgi, cwstring;
type
TCGIApp = class(TCustomCGIApplication)
public
procedure HandleRequest(ARequest: TRequest; AResponse: TResponse); override;
end;
procedure TCGIApp.HandleRequest(ARequest: TRequest; AResponse: TResponse);
var
ac: widestring;
begin
ac := 'é';
AResponse.Contents.Add(ac);
end;
begin
with TCGIApp.Create(nil) do
try
Initialize;
Run;
finally
Free;
end;
end.