Encodes a string as a QR code

Description

Encodes a string as a QR coder

Usage

1
2
qrencode_raw(to_encode, version = 0L, level = 0L, hint = 2L,
  caseinsensitive = 1L)

Arguments

to_encode

character string to encode

version

version of the symbol. If 0, the library chooses the minimum version for the given input data.

level

error correction level (0 - 3, lowest to highest)

hint

tell the library how Japanese Kanji characters should be encoded. If "3", the library assumes that the given string contains Shift-JIS characters and encodes them in Kanji-mode. If "2" is given, all of non-alphanumerical characters will be encoded as is. If you want to embed UTF-8 string, choose this. Other mode will cause EINVAL error.

"0" is "numeric mode", "1" is "alphanumeric mode", "5" is "ECI mode".

caseinsensitive

case-sensitive(1) or not(0).

See Also

http://www.qrcode.com/en/about/version.html