I have another question yet. If I had a std::wstring looking like this:
ドイツ語で検索していてこちらのサイトにたどり着きました。
How could I possibly get it
First, convert to UTF-8. Then, normal URL/HTML encode would do the right thing.