Fstream open fails

  • Thread starter Thread starter Alamelu
  • Start date Start date
A

Alamelu

fstream open fails for a path with non-english characters(chinese), in
project settings i have enabled MBCS and Unicode, why should it still fail

How to make fstream work for a path with non-english charcter
 
Alamelu said:
fstream open fails for a path with non-english characters(chinese), in
project settings i have enabled MBCS and Unicode, why should it still fail

How to make fstream work for a path with non-english charcter

How did you enable MBCS *and* Unicode? Aren't these alternatives?

My advice is to compile for Unicode. In VS2005 and VS2008, fstream can open
UTF-16 filenames (Extension to the c++ standard).
 
Back
Top