Skip to content

net8.0-ios / net8.0-android: mtouchi18n / mandroidi18n options do not apply? #106232

Open
@kiddkaffeine

Description

@kiddkaffeine

Description

Per documentation, adding flags like

Reproduction Steps

  1. Create net8.0-ios or net8.0-android project.
  2. Add cjk on iOS or cjk on Android
  3. 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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions