This is a simple wrapper of iconv for C++.
- libiconv (http://www.gnu.org/s/libiconv/)
Simply copy 'iconv.hpp' file to your project directory, or install it to your include directory.
$ ./waf configure $ ./waf --check $ ./waf install
iconvpp::converter conv("UTF-8", // output encoding "EUC-JP", // input encoding true, // ignore errors (optional, default: fasle) 1024); // buffer size (optional, default: 1024) std::string input = "..."; std::string output; conv.convert(input, output);
See 'iconv_test.cpp' for more examples.
This library is distributed under the new BSD license.