This commit is contained in:
keita
2021-02-18 11:38:41 +09:00
parent e45fc37c12
commit 998dcfb9a7
6 changed files with 14 additions and 14 deletions
+2 -1
View File
@@ -11,7 +11,8 @@ std::string urlEncode(const std::string& _str) {
(c == '.' || (c == '_') || (c == '-' || (c == '~')))) {
out << c;
} else {
out << '%' << std::setw(2) << std::setfill('0') << std::hex << std::uppercase << (0xFF & static_cast<int>(c));
out << '%' << std::setw(2) << std::setfill('0') << std::hex << std::uppercase
<< (0xFF & static_cast<int>(c));
}
}