Skip to content

Commit 0cf75cd

Browse files
committed
:docs: update README with target frameworks and Latin-1 encoding guidance for netstandard2.0
1 parent 94acf55 commit 0cf75cd

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,15 @@ dotnet add package QsNet
4444
### Package Reference
4545

4646
```xml
47-
<PackageReference Include="QsNet" Version="<version>" />
47+
48+
<PackageReference Include="QsNet" Version="<version>"/>
4849
```
4950

5051
---
5152

5253
## Requirements
5354

54-
- .NET **8.0+**
55+
- **Targets:** `net8.0`, `netstandard2.0`
5556

5657
---
5758

@@ -588,6 +589,16 @@ Qs.Encode(
588589

589590
### Charset handling
590591

592+
> **Note (Latin-1 on older TFMs):** Some frameworks (e.g., netstandard2.0) don’t expose `Encoding.Latin1` directly. Use
593+
`Encoding.GetEncoding("iso-8859-1")`. On .NET Core / netstandard you may also need to register the code pages provider:
594+
>
595+
> ```csharp
596+
> using System.Text;
597+
>
598+
> Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
599+
> var latin1 = Encoding.GetEncoding("iso-8859-1");
600+
> ```
601+
591602
```csharp
592603
// Encode using Latin1 charset
593604
Qs.Encode(

0 commit comments

Comments
 (0)