To get UTF8 conversion in FPC 3, I have to use UTF8Encode.
It seems that normal assignment just returns question marks ??????
procedure QuestionMarks(W:WideString);var
U:UTF8String;//same result with AnsiString
begin
U:=W;
writeln(U)
end;
My computer's locale:
LANG=en_ZA.UTF-8
I just feel that FPC could do a better job here, since conversion is from UTF16 to UTF8.
I understand there is the "iconv" library....