intqr_code_data_list_extract_text(constqr_code_data_list*_qrlist,
zbar_image_scanner_t*iscn,
zbar_image_t*img)
{
iconv_t sjis_cd
iconv_t utf8_cd
iconv_t latin1_cd
constqr_code_data *qrdata
int nqrdata
unsignedchar *mark
int ntext
int i
qrdata=_qrlist->qrdata
nqrdata=_qrlist->nqrdata
mark=(unsignedchar*)calloc(nqrdata,sizeof(*mark))
ntext=0
/ 重点在这里,我们不要 ISO8859-1,直接换成 GB18030 就可以了<pre t="code" l="csharp"> //latin1_cd=iconv_open("UTF-8","ISO8859-1")
latin1_cd=iconv_open("UTF-8","GB18030")
sjis_cd=iconv_open("UTF-8","SJIS")
utf8_cd=iconv_open("UTF-8","UTF-8")我们的iphone zbar sdk 里并没有这个文件,只有libzbar.a这就需要我们用源码重新编译libzbar.a
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)