Search:
Forum
General C++ Programming
How to save the text file in the unicode
How to save the text file in the unicode
May 3, 2010 at 1:19pm UTC
ramKrushna
(19)
Hi experts
I want to know how to store the containts of the txt file to
the unicode character please give reply
Regards,
ram
May 3, 2010 at 1:26pm UTC
Bazzy
(6281)
Output the Unicode magic number and then the Unicode values ( in binary format )
May 3, 2010 at 1:51pm UTC
helios
(17607)
Unicode magic number
The what now? You mean the byte order mark? That's only needed when you're writing UTF-16 and bigger encodings.
May 3, 2010 at 2:16pm UTC
Duthomhas
(13282)
I think he wants to
read
a file.
May 3, 2010 at 2:20pm UTC
ramKrushna
(19)
No I just want to write the containts as a unicode?
Last edited on
May 3, 2010 at 2:20pm UTC
May 3, 2010 at 2:27pm UTC
Duthomhas
(13282)
Ah, then first convert your string to a unicode representation and then just
write
() it to file.
Read more about Unicode encodings here (UTF-8, UTF-16, and UTF-32):
http://en.wikipedia.org/wiki/Unicode
The
iconv
library is designed to convert between encodings for you. Check it out.
http://www.gnu.org/software/libiconv/
Good luck!
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs