diff --git a/src/string_util.cpp b/src/string_util.cpp index 5dc41c4..331be3d 100644 --- a/src/string_util.cpp +++ b/src/string_util.cpp @@ -130,7 +130,9 @@ string urlEncode(const string &s) } else if (s[i] == '.' || s[i] == '-' || s[i] == '*' || s[i] == '_') { result += s[i]; } else if (s[i] == ' ') { - result += '+'; + result += '%'; + result += '2'; + result += '0'; } else { result += "%"; result += hexAlphabet[static_cast(s[i]) / 16];