To convert UHF-8 to ASCII using C++

Hi,
I have two strings aaa, bbb which contains text in UTF-8 format.

I am using Solaris OS. zsh shell, emacs editor. In the shell the text are represented like "fff'''(((#ip##iii^q##1.....
Example: aaa="fff'''(((#ip##iii^q##1"..

I need to compare the two strings, I feel that text in this format(UTF-8) can not be compared hopefully all the times, since same symbol ## may represent different meaning.

I thought of converting UTF-8 to ASCII and then comparing.

So friends Please tell how to convert them.
Is there any other alternative to compare the UTF-8 text.

Is this what you're looking for:

Regards

You can read bellow article:

CodeProject: Convert between std::string and std::wstring, UTF-8 and UTF-16. Free source code and programming help

Best regards,
Iliyan Varshilov

I got some input through your links.

Thanks. Franklin and Iliyan.