I have a web server developed in C++. In this web server, the data is received from the client side and stored in the database.
Some of this data is in Persian, which is converted to Unicode UTF-8 format.
as example:
data string is "سلام" in client side when i get data, in webserver "D8%B3%D9%84%D8%A7%D9%85"
I want to convert UTF-8 Code to c++ string, How can I do this conversion?
%. It's"%D8%B3%D9%84%D8%A7%D9%85". That's how you would do it in JavaScript: wandbox.org/permlink/4WRinFLfKHNoEfoe. You need a way encode and decode in C++. libcurl is a library that can do this in C (and C++) with curl_easy_escape and curl_easy_unescape