Read Arabic file contents using string in c++ -


i have text file (ansi encoding) contains arabic contents , have read using c++ as:

ifstream ifs(file.getfilename()); std::string content((std::istreambuf_iterator<char>(ifs)),          std::istreambuf_iterator<char>()); 

unfortunately content variable holds encrypted strings (which must in arabic lang) i.e:

 121101  ÇáÒÈæä ßãÇá 121102  ÇáÒÈæä ÓÚíÏ 121103  ÇáÒÈæä ÚãÇÑ 

any solution???

thanks :)


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -