yeahdongcn / RSBarcodes_Swift

1D and 2D barcodes reader and generators for iOS 8 with delightful controls. Now Swift.
MIT License
710 stars 185 forks source link

Can not generate with Unicode character ¿ #133

Open nikakirkitadze opened 5 years ago

nikakirkitadze commented 5 years ago

I am trying to make app which will generate barcode images with special characters like: ¿ ¶ µ but it is not generating correctly

let unicodeChar: Character = "\u{00B0}" let encodeType = getBarcodeTypeFor(typeStr: card.barcodeType) self.barcodeImageView.image = UIImage().toBarcode(string: ";038388(unicodeChar)", encoder: encodeType, inputCorrectionLevel: .Medium)

After barcode scan barcode scanner returns text: ;038388%C2%B0 and I want to return it ;038388¿