#include "Utils.hpp" #include #include #include #include std::locale utf8loc(std::locale(), new std::codecvt_utf8); using namespace std; int main(int argc, char **argv) { setlocale(LC_ALL, "en_US.UTF-8"); wcout.imbue(utf8loc); wcin.imbue(utf8loc); wcout << L"Number of arguments: " << (argc - 1) << endl; wcout << L"Program Name: " << Utils::UTF8_to_wstring(argv[0]) << endl; wcout << L"Arg 1: " << Utils::UTF8_to_wstring(argv[1]) << endl; wcout << L"Arg 2: " << Utils::UTF8_to_wstring(argv[2]) << endl; wcout << L"Arg 3: " << Utils::UTF8_to_wstring(argv[3]) << endl; wcout << L"Arg 4: " << Utils::UTF8_to_wstring(argv[4]) << endl; return 0; }