Converting file to UTF-8

Hi,

I am going to obtain some data from windows registry
and I use system command to export whole key to txt file.
But when I try to find in C++ my text in this file it's going to fail
because it is Unicode or UTF-16 ( Emacs shows it as utf-16le-with-signature-dos )
format. When I manually change file's format using Notepad to UTF-8, my code works.
Any idea how to do it in C++ code, convert file ( preferred ) or other way to reach registry value ( inside key )

Piece of code:
runit = "reg export \"HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\" ie.txt";
system( runit.c_str() );
IEFile.open( "ie.txt" );
then getline and find function.

Regards,
Mike
Hi,

Maybe someone tells me, how to find text in Unicode file ?
It is the other solution for my problem I guess.

Regards,
Mike
Topic archived. No new replies allowed.