Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeYallop committed Oct 24, 2024
1 parent b8725c9 commit 70c8dca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ See more [samples](./samples).

## Features

* Automatic Latin1 detection
#### Automatic Latin1 detection

Byte-mode encoding for a QR Code defaults to Latin1. Quarer detects when it could be beneficial to transcode a string to Latin1, otherwise, Quarer defaults to UTF-8. Latin1 is a more compact encoding than UTF-8 for some characters. In addition, Quarer can also skip emitting the ECI indicator for such a case.

Expand All @@ -87,22 +87,22 @@ Console.WriteLine(Encoding.UTF8.GetBytes(s).Length); // 2
Console.WriteLine(Encoding.Latin1.GetBytes(s).Length); // 1
```

* Encode at a specific error correction level
#### Encode at a specific error correction level
```csharp
var qrCode = QrCode.Create("Hello, World!", ErrorCorrectionLevel.H);
```

* Encode using a specific version
#### Encode using a specific version
```csharp
var qrCode = QrCode.Create("Hello, World!", QrVersion.GetVersion(5), ErrorCorrectionLevel.M);
```

* Encode binary data
#### Encode binary data
```csharp
var qrCode = QrCode.Create([0xFE, 0xED, 0xCA, 0xFE]);
```

* ECI support
#### ECI support
```csharp
// 26 is the ECI code for UTF-8
var eciCode = new EciCode(26);
Expand Down

0 comments on commit 70c8dca

Please sign in to comment.