fwrite for unicode big endian
-
Hi all, I want my .txt file to be saved in unicode big endian encoded one.. i am using fwrite function... but its not writing properly..its showing some junk characters.. Does fwrite function allow us to save in unicode big endian format?? Please let me know for further clarifications.. thanks, rakesh.
-
Hi all, I want my .txt file to be saved in unicode big endian encoded one.. i am using fwrite function... but its not writing properly..its showing some junk characters.. Does fwrite function allow us to save in unicode big endian format?? Please let me know for further clarifications.. thanks, rakesh.
Unicode and ANSI file I/O, line by line[^]
Thanks and Regards, Selvam, http://www.wincpp.com
-
Unicode and ANSI file I/O, line by line[^]
Thanks and Regards, Selvam, http://www.wincpp.com
-
Hi Selvam, Thanks for your reply.. Can you please enlighten me about the content u referred?? can you please tell me how can we make fwrite to support unicode big endian type.. thanks, rakesh
Hi, C++ supports Unicode using wchar_t data type. You can allocate size for unicode data type and write Unicode format.
size_t n = fwrite(s.c_str(), sizeof(wchar_t), s.size(), f);
more information/example on the following web http://groups.google.com/group/microsoft.public.vc.language/msg/ea6b6462744737d5?pli=1[^] http://cboard.cprogramming.com/c-programming/87932-reading-unicode-file.html[^]
Thanks and Regards, Selvam, http://www.wincpp.com