it would still fail to open the file.
Correct. You'd need to encode using the current ANSI code page (Windows) or current locale encoding (unix).
In Windows, you could also use the system's wide character interface (CreateFileW) via some means other than open. Win32API::File's CreateFileW function would be one such mean.
In reply to Re^6: Character encoding in console in Windows
by ikegami
in thread Character encoding in console in Windows
by elef
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |