Fix URL encode issue.

This commit is contained in:
Chunting Gu
2019-09-18 14:03:16 +08:00
parent 53a731caf5
commit 9f3d968e77
11 changed files with 81 additions and 214 deletions
+12
View File
@@ -0,0 +1,12 @@
#ifndef ENCODING_H_
#define ENCODING_H_
#include <string>
// Convert UTF16 to UTF8.
std::string Utf16ToUtf8(const std::wstring& utf16_string);
// Convert UTF8 to UTF16.
std::wstring Utf8ToUtf16(const std::string& utf8_string);
#endif // ENCODING_H_