Table of Contents

Class ECI

Namespace
Net.Codecrete.QrCodeGenerator
Assembly
QrCodeGenerator.dll

ECI (Extended Channel Interpretation) values for text and data encoding.

An ECI indicator is used to specify the character encoding of the data that follows.

If no ECI indicator is present, the default encoding according to the QR code specification is ISO-8859-1 (Latin-1). However, many QR code scanners either analyze the data and guess the encoding or assume UTF-8.

[SuppressMessage("ReSharper", "InconsistentNaming")]
[SuppressMessage("csharpsquid", "S101")]
[Serializable]
public sealed class ECI : IEquatable<ECI>
Inheritance
ECI
Implements
Inherited Members

Fields

Automatic

Automatic ECI selection.

This value is not a valid ECI value. It is used as a method parameter to indicate that an appropriate encoding and ECI value should be selected automatically.

public static readonly ECI Automatic

Field Value

ECI

Big5

Big-5 encoding.

public static readonly ECI Big5

Field Value

ECI

BinaryData

Binary 8-bit data.

This is not an encoding but rather an indicator that the data contains binary data.

public static readonly ECI BinaryData

Field Value

ECI

CodePage437

Code page 437 encoding.

Also known as CP437, OEM-US, OEM 437, PC-8, or MS-DOS Latin US.

public static readonly ECI CodePage437

Field Value

ECI

GB18030

GB 18030 encoding.

public static readonly ECI GB18030

Field Value

ECI

GB2312

GB/T 2312 encoding.

public static readonly ECI GB2312

Field Value

ECI

GBK

GBK encoding.

public static readonly ECI GBK

Field Value

ECI

Iso646Inv

ISO/IEC 646 invariant set encoding.

public static readonly ECI Iso646Inv

Field Value

ECI

Iso8859_1

Latin-1 / ISO/IEC 8859-1 encoding (Western European).

public static readonly ECI Iso8859_1

Field Value

ECI

Iso8859_10

Latin-6 / ISO/IEC 8859-10 encoding.

public static readonly ECI Iso8859_10

Field Value

ECI

Iso8859_11

Latin/Thai / ISO/IEC 8859-11 encoding.

public static readonly ECI Iso8859_11

Field Value

ECI

Iso8859_13

Latin-7 / ISO/IEC 8859-13 encoding.

public static readonly ECI Iso8859_13

Field Value

ECI

Iso8859_14

Latin-8/Celtic / ISO/IEC 8859-14 encoding.

public static readonly ECI Iso8859_14

Field Value

ECI

Iso8859_15

Latin-9 / ISO/IEC 8859-15 encoding.

public static readonly ECI Iso8859_15

Field Value

ECI

Iso8859_16

Latin-10 / ISO/IEC 8859-16 encoding.

public static readonly ECI Iso8859_16

Field Value

ECI

Iso8859_2

Latin-2 / ISO/IEC 8859-2 encoding (Central European).

public static readonly ECI Iso8859_2

Field Value

ECI

Iso8859_3

Latin-3 / ISO/IEC 8859-3 encoding.

public static readonly ECI Iso8859_3

Field Value

ECI

Iso8859_4

Latin-4 / ISO/IEC 8859-4 encoding (Baltic).

public static readonly ECI Iso8859_4

Field Value

ECI

Iso8859_5

Latin/Cyrillic / ISO/IEC 8859-5 encoding.

public static readonly ECI Iso8859_5

Field Value

ECI

Iso8859_6

Latin/Arabic / ISO/IEC 8859-6 encoding.

public static readonly ECI Iso8859_6

Field Value

ECI

Iso8859_7

Latin/Greek / ISO/IEC 8859-7 encoding.

public static readonly ECI Iso8859_7

Field Value

ECI

Iso8859_8

Latin/Hebrew / ISO/IEC 8859-8 encoding.

public static readonly ECI Iso8859_8

Field Value

ECI

Iso8859_9

Latin-5 / ISO/IEC 8859-9 encoding (Turkish).

public static readonly ECI Iso8859_9

Field Value

ECI

KS_X1001

KS X 1001 encoding.

public static readonly ECI KS_X1001

Field Value

ECI

Latin1

Latin-1 / ISO/IEC 8859-1 encoding (Western European).

public static readonly ECI Latin1

Field Value

ECI

Latin10

Latin-10 / ISO/IEC 8859-16 encoding.

public static readonly ECI Latin10

Field Value

ECI

Latin2

Latin-2 / ISO/IEC 8859-2 encoding (Central European).

public static readonly ECI Latin2

Field Value

ECI

Latin3

Latin-3 / ISO/IEC 8859-3 encoding.

public static readonly ECI Latin3

Field Value

ECI

Latin4

Latin-4 / ISO/IEC 8859-4 encoding (Baltic).

public static readonly ECI Latin4

Field Value

ECI

Latin5

Latin-5 / ISO/IEC 8859-9 encoding (Turkish).

public static readonly ECI Latin5

Field Value

ECI

Latin6

Latin-6 / ISO/IEC 8859-10 encoding.

public static readonly ECI Latin6

Field Value

ECI

Latin7

Latin-7 / ISO/IEC 8859-13 encoding.

public static readonly ECI Latin7

Field Value

ECI

Latin8

Latin-8 / ISO/IEC 8859-14 (Celtic) encoding.

public static readonly ECI Latin8

Field Value

ECI

Latin9

Latin-9 / ISO/IEC 8859-15 encoding.

public static readonly ECI Latin9

Field Value

ECI

LatinArabic

Latin/Arabic / ISO/IEC 8859-6 encoding.

public static readonly ECI LatinArabic

Field Value

ECI

LatinCyrillic

Latin/Cyrillic / ISO/IEC 8859-5 encoding.

public static readonly ECI LatinCyrillic

Field Value

ECI

LatinGreek

Latin/Greek / ISO/IEC 8859-7 encoding.

public static readonly ECI LatinGreek

Field Value

ECI

LatinHebrew

Latin/Hebrew / ISO/IEC 8859-8 encoding.

public static readonly ECI LatinHebrew

Field Value

ECI

LatinThai

Latin/Thai / ISO/IEC 8859-11 encoding.

public static readonly ECI LatinThai

Field Value

ECI

None

No ECI indicator.

This value is not a valid ECI value. It is used as a method parameter to indicate that no ECI indicator should be added.

public static readonly ECI None

Field Value

ECI

ShiftJIS

Shift JIS encoding.

Also known as SJIS encoding.

public static readonly ECI ShiftJIS

Field Value

ECI

US_ASCII

US ASCII encoding.

public static readonly ECI US_ASCII

Field Value

ECI

UTF16BE

Unicode UTF-16 big endian encoding.

public static readonly ECI UTF16BE

Field Value

ECI

UTF16LE

Unicode UTF-16 little endian encoding.

public static readonly ECI UTF16LE

Field Value

ECI

UTF32BE

Unicode UTF-32 big endian encoding.

public static readonly ECI UTF32BE

Field Value

ECI

UTF32LE

Unicode UTF-32 little endian encoding.

public static readonly ECI UTF32LE

Field Value

ECI

UTF8

Unicode UTF-8 encoding.

public static readonly ECI UTF8

Field Value

ECI

Windows1250

Windows-1250 encoding.

public static readonly ECI Windows1250

Field Value

ECI

Windows1251

Windows-1251 encoding.

public static readonly ECI Windows1251

Field Value

ECI

Windows1252

Windows-1252 encoding.

public static readonly ECI Windows1252

Field Value

ECI

Windows1256

Windows-1256 encoding.

public static readonly ECI Windows1256

Field Value

ECI

Properties

Value

Numeric ECI designator value.

public int Value { get; }

Property Value

int

Methods

Equals(ECI)

Determines if the other instance is equal to this instance.

public bool Equals(ECI other)

Parameters

other ECI

The other instance.

Returns

bool

true if they are equal, false otherwise.

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

FromValue(int)

Creates an ECI designator with the given value.

public static ECI FromValue(int value)

Parameters

value int

The ECI designator value.

Returns

ECI

GetEncoding()

Gets the associated encoding for this ECI value.

public Encoding GetEncoding()

Returns

Encoding

Encoding.

Remarks

Note that not all encodings are available on .NET platforms. And many encodings are only available if Encoding.RegisterProvider(CodePagesEncodingProvider.Instance) has been called beforehand.

GetHashCode()

public override int GetHashCode()

Returns

int