qicosmos / cinatra

modern c++(c++20), cross-platform, header-only, easy to use http framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GET请求参数中文乱码

dxnu opened this issue · comments

commented

当请求参数中包含中文时,通过req.get_query_value()得到的结果出现乱码,请问如何解决呢

应该是u8字符串,可以试试std::filesystem::u8path(query_value).string()输出看看

commented

解决了,感谢