Skip to content

Commit

Permalink
调整解码的顺序
Browse files Browse the repository at this point in the history
Signed-off-by: Luyiyuan <[email protected]>
  • Loading branch information
Luyiyuan committed Jun 6, 2012
1 parent 295da92 commit b5e1183
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions zbar/qrcode/qrdectxt.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,13 @@ int qr_code_data_list_extract_text(const qr_code_data_list *_qrlist,
else sa_text[sa_ntext++]=(char)(fnc1_2ai-100);
}
eci=-1;
enc_list[0]=sjis_cd;
enc_list[1]=latin1_cd;
enc_list[2]=utf8_cd;
//enc_list[0]=sjis_cd;
//enc_list[1]=latin1_cd;
//enc_list[2]=utf8_cd;
enc_list[0]=utf8_cd;
enc_list[1]=sjis_cd;
enc_list[2]=latin1_cd;

eci_cd=(iconv_t)-1;
err=0;
for(j = 0; j < sa_size && !err; j++, sym = &(*sym)->next) {
Expand Down

0 comments on commit b5e1183

Please sign in to comment.