+ SetConsoleOutputCP(CP_UTF8); báo cho hệ thống chuẩn bị output console là UTF-8C Code:
int main(){ SetConsoleOutputCP(CP_UTF8); }
+ printf("Tiếng Việt cho người Việt."); xuất chuỗi UTF-8 ra màn hình
Khi hệ thống đã là UTF-8 thì có thể bỏ qua bước 1, ví dụ:
http://diendan.congdongcviet.com/threads/t467905::code-and-resource-for-vietnamese.cpp
...
..
.