dotnet / dotnet/wcf

[Feedback]: ServiceModel.Channels.TextEncoderDefaults.ValidateEncoding throw ArgumentException with 'shift_jis' Maui.net (android)

Open
#5,675 1 comment 0 reactions 1 assignee Claimed by @mconnew View on GitHub
triaged
Dominant language
C#
Stars
1.8k
Forks
576
Avg merge
6d 9h
Merged PRs (30d)
2

Description

Community Feedback: [ServiceModel.Channels.TextEncoderDefaults.ValidateEncoding throw ArgumentException with 'shift_jis' Maui.net (android) - Developer Community](https://developercommunity.visualstudio.com/t/ServiceModelChannelsTextEncoderDefault/10780594)

Description: ServiceModel.Channels.TextEncoderDefaults.ValidateEncoding throw ArgumentException with 'shift_jis' Maui.net (android),reported encountering an exception while trying to use a WCF client in MAUI .NET: System.ArgumentException: テキスト メッセージ形式に使用されているテキスト エンコード ‘shift_jis’ はサポートされていません。 (Parameter ‘encoding’)

Double reviewing the relevant code in ServiceModel.Channels.TextEncoderDefaults.ValidateEncoding, which indicates that only UTF8, Unicode, and BigEndianUnicode encodings are supported . The encoding the customer is using is shift_jis(a character encoding for the Japanese language).

Ref: [Shift JIS - Wikipedia](https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FShift_JIS&data=05%7C02%7Cv-xiaom%40microsoft.com%7Cd45c926b424c4da8a0f808dcfe045a0b%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638664541888951184%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=XVAW9kif8mVdGSOfHToA8qxSZntRKpt5xAd4FQSAaAY%3D&reserved=0)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.