Skip to content

Commit a47f994

Browse files
tarekghgewarren
andauthored
Apply suggestions from code review
Co-authored-by: Genevieve Warren <[email protected]>
1 parent 13c709f commit a47f994

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

xml/System.Text/CodePagesEncodingProvider.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@
7575
7676
After an <xref:System.Text.EncodingProvider> object is registered, the encodings that it supports are available by calling the overloads of <xref:System.Text.Encoding.GetEncoding%2A?displayProperty=nameWithType>; you should not call the <xref:System.Text.EncodingProvider.GetEncoding%2A?displayProperty=nameWithType> overloads.
7777
78-
## Impact on Default Encoding Behavior
78+
### Impact on default encoding behavior
7979
80-
Registering <xref:System.Text.CodePagesEncodingProvider> also affects the behavior of <xref:System.Text.Encoding.GetEncoding(System.Int32)> when called with a `codepage` argument of `0`:
80+
Registering <xref:System.Text.CodePagesEncodingProvider> also affects the behavior of <xref:System.Text.Encoding.GetEncoding(System.Int32)> when called with a `codepage` argument of `0` in .NET (Core):
8181
82-
- **On Windows**: Returns the encoding that matches the system's active code page, which is the same behavior as in .NET Framework.
83-
- **On non-Windows platforms**: Still returns UTF-8, maintaining cross-platform consistency.
82+
- On Windows, `GetEncoding(0)` returns the encoding that matches the system's active code page, which is the same behavior as in .NET Framework.
83+
- On non-Windows platforms, `GetEncoding(0)` returns UTF-8, maintaining cross-platform consistency.
8484
85-
Without any encoding provider registered, <xref:System.Text.Encoding.GetEncoding(System.Int32)> with `codepage` 0 returns UTF-8 on all platforms in .NET Core and later versions.
85+
When no encoding provider is registered, `GetEncoding(0)` returns UTF-8 on all platforms in .NET Core and later versions.
8686
8787
]]></format>
8888
</remarks>

0 commit comments

Comments
 (0)