QrCode.Utf8Data Class
This class sets the extended channel interpretation mode indicator for the utf8 character set. While this is a Data object, it does not directly encode data. Instead, it sets a flag in the data stream which tells a decoder how to interpret the data that follows. Utf8 is a widely supported character set, so this may be a good choice if you need to encode characters that are not supported in alphanumeric mode. Note that JavaScript strings do not use utf8 characters. This module does not provide the functionality required to convert characters to utf8.
Constructor
Methods
toBinaryString
-
version
Returns a properly formatted binary string for utf8 data.
Returns:
Attributes
type
String
Default: 'utf8'
Fires event typeChange
Fires when the value for the configuration attribute type
is
changed. You can listen for the event using the on
method if you
wish to be notified before the attribute's value has changed, or
using the after
method if you wish to be notified after the
attribute's value has changed.
Parameters:
-
e
EventFacadeAn Event Facade object with the following attribute-specific properties added:
value
Number | String
This object does not require a value.
Default: ''
Fires event valueChange
Fires when the value for the configuration attribute value
is
changed. You can listen for the event using the on
method if you
wish to be notified before the attribute's value has changed, or
using the after
method if you wish to be notified after the
attribute's value has changed.
Parameters:
-
e
EventFacadeAn Event Facade object with the following attribute-specific properties added: