Building on a recent blog post, this package shows to access the GNU iconv library (also used by R) via an exported R header.
We wrote the example up in this Rcpp Gallery post.
Dirk Eddelbuettel
GPL (>= 2).