Open
Description
Description
Per documentation, adding flags like
Reproduction Steps
- Create net8.0-ios or net8.0-android project.
- Add cjk on iOS or cjk on Android
- Attempt to use Shift JIS encoding, e.g.: System.Text.Encoding.GetEncoding(932)
Expected behavior
Shift JIS encoding returned.
Actual behavior
Exception thrown that encoding is not supported.
Regression?
Unknown, but possible based on workaround linked in documentation this worked in earlier .net releases and documentation is out of date.
Known Workarounds
Following https://www.nuget.org/packages/System.Text.Encoding.CodePages/#readme-body-tab and adding this:
// Register the CodePages encoding provider at application startup to enable using single and double byte encodings.
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
Seems to fix.
Configuration
No response
Other information
No response