改用Poco请求。

This commit is contained in:
2026-03-24 10:28:37 +08:00
parent d3bfc82299
commit 927c9c19bf
7 changed files with 122 additions and 43 deletions

View File

@@ -1,4 +1,4 @@
#include <CLI/CLI.hpp>
#include <CLI11.hpp>
#include <iostream>
#include <string>
#include <vector>
@@ -14,8 +14,16 @@
int main(int argc, char** argv)
{
#ifdef _WIN32
auto curCP = GetConsoleOutputCP();
std::shared_ptr<void> recovery(nullptr, [curCP](void*) { SetConsoleOutputCP(curCP); });
SetConsoleOutputCP(CP_UTF8);
#endif
if (argc < 2) {
std::cout << "使用 --help 获取帮助信息。" << std::endl;
return 0;
}
CLI::App app{"百度翻译xlsx批量工具。"};
argv = app.ensure_utf8(argv);