I need to use delphi 7 to convert strings from utf8 to widestring. Could anybody tell me why the following code doesn't work in delphi 7? The parameter of the Utf8Decode function is just a sample.
var ws: WideString;
begin
ws := Utf8Decode('[أمبير] خطأ تيار- تيار Ů…ŘŞŮاصل مطلق');
end;
In delphi 7 it gives me lot's of question marks,however in bds2006 it works well.
Do I need to switch some compiler directive on, or how can I convert an utf8String to Widestring in delphi 7?
SOLUTION
There's nothing wrong with the Utf8Decode function, The Delphi Code Insight Tooltip expression evaluation output misled me, which can't display Widestrings. see the image below:

but the MessageBoxW could display the text:

