Question

I have Delphi 2010.

XXX-component uses File_Path:AnsiString. A path can be written in XXX-language. If I set to use XXX-language for non-unicode programs in Windows settings then XXX-component recognize the path but if I set default Windows settings (English Windows-English for non-unicode programs) XXX-component can not recognize the path.

How to fix it?

Thank you!!!

Was it helpful?

Solution

To solve this problem you need to move away from ANSI strings and start using Unicode strings and the corresponding Unicode versions of the Windows API. At the moment you are reliant on the computer locale and that's an enormous world of pain.

Moving from AnsiString to string takes a little effort but the benefits make the effort well worthwhile.

Embrace Unicode and forget all about the bad old days!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top