Created
December 2, 2014 06:23
-
-
Save ChandleWEi/69e7be3e401a804ad7de to your computer and use it in GitHub Desktop.
qrtestcode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rqrcode_png' | |
str = "中文数字12312312" | |
str = str.force_encoding("CP852") | |
qr = RQRCode::QRCode.new(str) | |
png = qr.to_img | |
png.resize(90,90).save("Downloads/qrtest/cyzz.png") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment