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

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

Jump to Post

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 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.