i have line of string in text file , i opened it in notepad and saved it to Unicode Encoding
this string contain Unicode escape sequences .
now my visual studio project that suppose to read this file configured as :
Use Unicode Character Set.
in my code im using simple code:
Code:
    ifstream fp_in;   
    fp_in.open("text1_uni.txt",std::ios_base::in);    // open the streams
    string line =""	
    if(fp_in.is_open())
    {
    		 
    	while ( !fp_in.eof() )
    	{
    	   getline (fp_in,line,'\n');
            }
    }
bug the string in the line , is corrupted only the begging of the string is shown.
but
when i change the file from which i read from to UTF-8 without BOM
but the Unicode escape sequence are garbage .