---
# System prepended metadata

title: ...

---

```c
#include <iostream>
#include <filesystem>
#include <windows.h>

int main() {

    std::cout << "Current console input code page: " << GetConsoleCP() << std::endl;

    std::u8string u8s = u8"測試 ABC こんにちは.txt";
    std::filesystem::path pFile;

    pFile = u8s;

    SetConsoleCP(65001);
	SetConsoleOutputCP(65001);

    std::cout << "Current console input code page: " << GetConsoleCP() << std::endl;
    std::cout << pFile << std::endl;

    return 0;
}
```


![圖片](https://hackmd.io/_uploads/SyD9SYiBJe.png)
![圖片](https://hackmd.io/_uploads/SJriSYjSJe.png)
![圖片](https://hackmd.io/_uploads/rJZ2rFsryg.png)
![圖片](https://hackmd.io/_uploads/Hkj2rYjrke.png)
![圖片](https://hackmd.io/_uploads/By44F9ir1l.png)





