I have an std::string filled with extended ASCII values (e.g. čáě). I need to URL encode this string for JavaScript to decode with DecodeURIComponent.
I have tried converting it to UTF-16 and then to UTF-8 via the windows-1252 codepoint, but wasn't able to do so as there is not enough examples for the MultiByteToWideChar and WideCharToMultiByte functions.
I am compiling with MSVC-14.0 on Windows 10 64-bit.
How can I at least iterate over the individual bytes of the final UTF-8 string for me to URL encode?
Thanks