wchar with getline code example Example: gestd::getline with wstring std::wstring input; std::getline(std::wcin, input);