UTF8 SysUtils. lazarus / 31-LCL ---------------------------------------------------------------------- skiy1337lazarus · 2015-09-20 17:02 I was stepping through the TTrayIcon code, and most interestingly, in win32TrayIcon.inc : 178: My ANSI filename is displayed as UTF8.... which is wrong.... FindFirst returns ANSI... I understand that form resources are saved in UTF8.... but FindFirst returns ANSI. Are all GUI components UTF8 now? If so, then only FindFirstUTF8 should be allowed/available. I don't want UTF8! lol ---------------------------------------------------------------------- Bart · 2015-09-20 20:47 The entire LCL is UTF8, so any text that is shown on a GUI is expected to be in UFT8. This has been the case for many years now. If the component uses FindFirst/Next it should use SysToUtf8() before showing the text, or better still use FindFirstUtf8 and comapanions. With 3.0.0rc1 and trunk the conversion is automatically when "Utf8 in RTL" is used. Bart ---------------------------------------------------------------------- skiy1337lazarus · 2015-09-21 06:01 Thank you very  much. ---------------------------------------------------------------------- Patito · 2015-09-21 06:49 Quote from: Bart on September 20, 2015, 10:47:32 pmThe entire LCL is UTF8, so any text that is shown on a GUI is expected to be in UFT8. This has been the case for many years now. If the component uses FindFirst/Next it should use SysToUtf8() before showing the text, or better still use FindFirstUtf8 and comapanions. With 3.0.0rc1 and trunk the conversion is automatically when "Utf8 in RTL" is used. But be careful with that. E.g. Conversion of Windows-Filenames to UTF-8 isn't completely lossless. Windows doesn't use standard UTF-16 everywhere... https://simonsapin.github.io/wtf-8/