首先下载iconv文件 下载地址:http://download.csdn.net/detail/dingkun520wy/6703113
把解压后的iconv文件夹放到cocos2dx的同级目录下
修改项目的proj.android/jni文件夹下的Android.mk文件
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../iconv/include \
$(LOCAL_PATH)/../../../iconv/libcharset \
$(LOCAL_PATH)/../../../iconv/lib \
$(LOCAL_PATH)/../../../iconv/libcharset/include \
$(LOCAL_PATH)/../../../iconv/srclib \
$(LOCAL_PATH)/../../../iconv
LOCAL_WHOLE_STATIC_LIBRARIES += libiconv
$(call import-module,iconv)
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
#include "../../../iconv/include/iconv.h"
#endif
这样就可以调用iconv库的方法了