The code doesn't recogniez the '°' character. When using the watch the value of alpha seems to be '?' in stead of '°'.
unit Unit1;
{$CODEPAGE UTF8}
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs;
type
TForm1 = class(TForm)
private
public
end;
var
Form1: TForm1;
implementation
{$R *.lfm}
var
alpha: Char;
begin
alpha := '°';
if alpha = '°' then
WriteLn('It works!');
end.
end.