[Lazarus] file name encoding

Marc Santhoff M.Santhoff at web.de
Tue Dec 16 05:52:17 CET 2014


On Mo, 2014-12-15 at 19:58 +0100, Bart wrote:
> On 12/14/14, Marc Santhoff <M.Santhoff at web.de> wrote:
> 
> > When reading directories and files using FindFirst()/FindNext() using
> > system encoding my program hangs on german 'ß' (eszett).
> 
> Did you try FindFirstUtf8/FindNextUtf8?

No, I didn't. I thought about using SysToUTF8 when reading, but when I'm
sure the system file names are not encoded UTF-8 that would have been
rather senseless. It don't know exactly, but any non ascii char would
have been encoded wrongly, wouldn't it?

I'll check that out of curiosity ... ;)

Thanks.
-- 
Marc Santhoff <M.Santhoff at web.de>





More information about the Lazarus mailing list