Skip to content

Instantly share code, notes, and snippets.

@ChandleWEi
Created December 2, 2014 06:23
Show Gist options
  • Save ChandleWEi/69e7be3e401a804ad7de to your computer and use it in GitHub Desktop.
Save ChandleWEi/69e7be3e401a804ad7de to your computer and use it in GitHub Desktop.
qrtestcode
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