public string ZXing_Decode(Bitmap barcodeBitmap) { try { BarcodeReader reader = new BarcodeReader(); reader.Options = new ZXing.Common.DecodingOptions { CharacterSet = "ISO-8859-1" }; var result = reader.Decode(barcodeBitmap); if (result != null && result.Text != null) { byte[] isoBytes = Encoding.GetEncoding("ISO-8859-1").GetBytes(result.Text); return Encoding.GetEncoding("gb2312").GetString(isoBytes); } else { return null; } } catch (Exception ex) { throw ex; } }