can we change console output to CP_UTF8 but using only C++ standard?

can we change console output to CP_UTF8 but using only C++ standard instead of windows functions? How do we build the locale to specify UTF8 and then imbue that to std::cout?
Already answered in your other thread:
https://cplusplus.com/forum/windows/284781/2/#msg1234510
Topic archived. No new replies allowed.