UTF8 on Linux lazarus / 32-Linux ---------------------------------------------------------------------- skiy1337lazarus · 2015-09-22 07:02 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.... ---------------------------------------------------------------------- Leledumbo · 2015-09-22 08:53 Quote from: skiy1337lazarus on September 22, 2015, 09:02:28 amTo get UTF8 conversion in FPC 3, I have to use UTF8Encode. It seems that normal assignment just returns question marks ?????? do you have either cwstring or fpwidestring in the uses clause? ---------------------------------------------------------------------- skiy1337lazarus · 2015-09-22 09:43 Thank you. Adding cwstring to my uses clause fixed the problem.