There was a task - to read the file name, consisting of Chinese characters.

How to do this, is it necessary to change the Windows language to Chinese, what should I use?

    2 answers 2

    In Delphi in versions prior to 2009, Unicode support in VCL is very limited. Therefore, the desired option is to upgrade to version 2009 and use the Delphi features. If this is not possible, then you need to work directly with the Windows API functions for Unicode of the form APIFuncW (W at the end).

    • Thank. Will the Delphi 7 project in Delphi 2009 start? - AseN
    • after converting and some dancing (depending on the number of third-party components and working with lines in the code) - yes - Nofate

    In versions of Delphi prior to 2009, there are 'WideString', 'WideChar' and 'PWideChar' types for storing Unicode strings and working with them. You can use them for working with Unicode WinAPI to open a file named in Chinese.