Table of Contents

Enum KanjiStrategy

Namespace
Net.Codecrete.QrCodeGenerator
Assembly
QrCodeGenerator.dll

Controls if the Kanji mode is used for data segments.

Kanji mode allows efficiently encoding text encoded in Shift-JIS, an encoding for Japanese text. It can also be used for any other data if it contains suitable byte combinations. However, many QR code scanners incorrectly assume that if Kanji mode is used, then it must be text encoded in Shift-JIS.

For the best compatibility with non-standard-compliant scanners, Kanji mode should only be used if the data is encoded in Shift-JIS.

public enum KanjiStrategy

Fields

Automatic = 0

Use Kanji mode to encode data segments if the text is encoded in Shift-JIS (and if it is beneficial for compactness).

Disabled = 2

Do not use Kanji mode.

Enabled = 1

Use Kanji mode if it is beneficial for data segment encoding, regardless of the text encoding.