Using CP_UTF8 macro instead of magic numbers.
MODIFY
src/vcpkg.cpp
src/vcpkg.cpp
@@ -245,8 +245,8 @@ int main(const int argc, const char* const* const argv)
GlobalState::g_init_console_cp = GetConsoleCP();
GlobalState::g_init_console_output_cp = GetConsoleOutputCP();
- SetConsoleCP(65001);
- SetConsoleOutputCP(65001);
+ SetConsoleCP(CP_UTF8);
+ SetConsoleOutputCP(CP_UTF8);
const std::string trimmed_command_line = trim_path_from_command_line(Strings::to_utf8(GetCommandLineW()));
#endif

Using CP_UTF8 macro instead of magic numbers.