G
gangs
I need to know how can I open a file which is stored using UTF-16
encoding in unicode. I am desperately trying to open the file using the
wofstream typedef, but even it takes the parameter as const char*, I
tried converting the filename from UTF16 to UTF8 encoding, wofstream
does not seem to work with that.
What I gather is that streams internally use fopen for opening up a
file, I could not find any way for passing a file descriptor to the
stream class to initialize it, basically trying to use a _wfopen to get
a file descriptor, but how can I pass it to a stream to initialize it
to it?
Kindly Note: I have to use streams for the same, it is a restriction in
the current architecture.
Please do let me know of any other way .
Gangs.
encoding in unicode. I am desperately trying to open the file using the
wofstream typedef, but even it takes the parameter as const char*, I
tried converting the filename from UTF16 to UTF8 encoding, wofstream
does not seem to work with that.
What I gather is that streams internally use fopen for opening up a
file, I could not find any way for passing a file descriptor to the
stream class to initialize it, basically trying to use a _wfopen to get
a file descriptor, but how can I pass it to a stream to initialize it
to it?
Kindly Note: I have to use streams for the same, it is a restriction in
the current architecture.
Please do let me know of any other way .
Gangs.