Add unicode example
This commit is contained in:
parent
59a30b9d12
commit
31a57014a8
8
examples/encode_unicode.rs
Normal file
8
examples/encode_unicode.rs
Normal file
|
@ -0,0 +1,8 @@
|
|||
use qrcode::render::unicode;
|
||||
use qrcode::QrCode;
|
||||
|
||||
fn main() {
|
||||
let code = QrCode::new(b"Hello").unwrap();
|
||||
let string = code.render::<unicode::Dense1x2>().quiet_zone(false).build();
|
||||
println!("{}", string);
|
||||
}
|
Loading…
Reference in a new issue