diff --git a/Source/Core/Common/StringUtil.cpp b/Source/Core/Common/StringUtil.cpp index a8880d371b..e3c6f692f6 100644 --- a/Source/Core/Common/StringUtil.cpp +++ b/Source/Core/Common/StringUtil.cpp @@ -17,6 +17,7 @@ #include #include #include +#include #include #include @@ -574,7 +575,10 @@ std::string UTF8ToSHIFTJIS(std::string_view input) std::string WStringToUTF8(std::wstring_view input) { - std::wstring_convert, wchar_t> converter; + using codecvt = std::conditional_t, + std::codecvt_utf8>; + + std::wstring_convert converter; return converter.to_bytes(input.data(), input.data() + input.size()); }