Dear all,
How to read a file with particural encoding like UTF -8 or UTF- 16. Do I need to use some special library?

Recommended Answers

All 2 Replies

I would say that's platform and compiler dependant. What are you using?

This may help: http://www.kernel.org/doc/man-pages/online/pages/man7/utf8.7.html

FWIW, to handle unicode characters, you will need to use the wide character versions of various functions, such ase wprintf() vs. printf(), etc. In any case, this is a pretty deep subject - I once spent the better part of a year implementing internationalization support for a major software suite, back when unicode was just a draft / proposed standard. Google has links to a lot of resources about this, and I suspect that the Wikipedia does also.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.