std.file and non-English filename in Windows
Patrick Schluter
Patrick.Schluter at bbox.fr
Mon Jan 1 10:47:51 UTC 2018
On Sunday, 31 December 2017 at 18:21:29 UTC, Domain wrote:
> In Windows, exists, rename, copy will report file not exists
> when you input non-English filename, such as Chinese 中文.txt
It's unclear what your problem is but here a wild guess.
Windows API's for Unicode use UTF-16 as far as I know. Strings in
D are utf-8. So before calling win32 API function, they have to
be transformed to wstring i.e. utf-16 strings.
More information about the Digitalmars-d-learn
mailing list