Is there a standard way to do an fopen with a Unicode string file path?
Is there a standard way to do an fopen with a Unicode string file
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In *nix, you simply use the standard
fopen(see more information in reply from TokeMacGuy, or in this forum)In Windows, you can use
_wfopen, and then pass a Unicode string (for more information, see MSDN).As there is no real common way, I would wrap this call in a macro, together with all other system-dependent functions.