#include <iostream>
#include "regex"
using namespace std;
std::string str = R"( <HTML>< META HTTP - EQUIV = \"CONTENT-TYPE\" CONTENT=\"TEXT/HTML;CHARSET=UTF-8\">\r\n\t<META HTTP-EQUIV=\"X-UA-COMPATIBLE\" CONTENT=\"IE=EDGE\">)";
std::regex r(R"(<\s*META[^>]+/?>)");
{

获得以后剩下的任务就是字符串查找提取编码了

相关文章:

  • 2021-12-22
  • 2021-06-02
  • 2021-08-03
  • 2021-05-31
  • 2022-12-23
  • 2021-10-20
猜你喜欢
  • 2021-09-11
  • 2021-11-17
  • 2021-07-29
  • 2022-01-24
  • 2022-12-23
  • 2022-12-23
  • 2021-10-05
相关资源
相似解决方案