Well, I think iconv is enough for your needs. Iconv must be available on any POSIX system by default (including (GNU /) Linux, * BSD, Mac OS X ...). Windows AFAIK requires a separate library, but:
- You can simply install it / link to your software / statically compile it. ( libiconv for Windows ). (I think I would recommend linking it).
- You can use some native Windows calls as a special case.
Of course, if you use Java, it has a built-in - but I see that it may not be what you want (JNI calls are expensive).
PS. You can not install perl for a specific encoding?
source share