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?
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?
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).
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.
Source: https://ru.stackoverflow.com/questions/68704/
All Articles