1

Topic: File name with hieroglyphs and CreateFile

Probably a silly question. But something . On a disk a file with hieroglyphs mixed up with normal characters. The project NOT Unicode. A question - how correctly to save file name? If to replace hieroglyphs with signs on a question that  does not open, a name wrong. And a line for a name in char. What to do? Can rename it? Or it is possible as that to cope with these hieroglyphs?

2

Re: File name with hieroglyphs and CreateFile

Hello, Poseidon, you wrote: P> Probably a silly question. But something . On a disk a file with hieroglyphs mixed up with normal characters. The project NOT Unicode. A question - how correctly to save file name? If to replace hieroglyphs with signs on a question that  does not open, a name wrong. And a line for a name in char. What to do? Can rename it? Or it is possible as that to cope with these hieroglyphs? In the theory, there can be a code page in which it is possible to work with this name, and there can be a possibility it to specify. In practice CreateFileW it is necessary to cause with a Unicode-line. If it is necessary to carry by through call stack to CreateFileW as char* a line, it is possible to transfer as UTF-8, and before call CreateFileW it to convert at wide-line.

3

Re: File name with hieroglyphs and CreateFile

Hello, Alexander G, you wrote: AG> Hello, Poseidon, you wrote: P>> Probably a silly question. But something . On a disk a file with hieroglyphs mixed up with normal characters. The project NOT Unicode. A question - how correctly to save file name? If to replace hieroglyphs with signs on a question that  does not open, a name wrong. And a line for a name in char. What to do? Can rename it? Or it is possible as that to cope with these hieroglyphs? AG> in the theory, there can be a code page in which it is possible to work with this name, and there can be a possibility it to specify. AG> in practice CreateFileW it is necessary to cause with a Unicode-line. If it is necessary to carry by through call stack to CreateFileW as char* a line, it is possible to transfer as UTF-8, and before call CreateFileW it to convert at wide-line. Thanks! Helped.