By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,260 Members | 1,305 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,260 IT Pros & Developers. It's quick & easy.

UNICODE variant of fopen or ofstream to be ANSI compliant.

P: n/a
I need to open an file with an unicode name, and i cannot find an
proper way to do this.

Any help is appreciated.

Thank you,
Mihai.

Dec 8 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a

mihai wrote:
I need to open an file with an unicode name, and i cannot find an
proper way to do this.


Try passing the return of c_str() from a wstring to open. It is not in
the current standard but may be in future versions and may or may not
be implemented in your environment.

Dec 8 '05 #2

P: n/a

roberts.n...@gmail.com wrote:
mihai wrote:
I need to open an file with an unicode name, and i cannot find an
proper way to do this.


Try passing the return of c_str() from a wstring to open.


fsteam::open that is.

Dec 8 '05 #3

P: n/a
On 8 Dec 2005 08:44:43 -0800, "mihai" <Mi*********@gmail.com> wrote:
I need to open an file with an unicode name, and i cannot find an
proper way to do this.


You probably need to use a platform-specific function (e.g. Windows
_wfopen).

Best wishes,
Roland Pibinger
Dec 8 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.