Ok. I'm not a C++ programmer as you have probably noticed :) So if you suggest a solution I will appreciate.
I have utf8 string in std::string and I need to have utf8 std::string on output containing i'th character of s. Something like code below but for utf8:
std::string strIn = "...";
std::string strOut;
strOut = strIn.substr(i, 1);