以下の内容はhttps://blog.systemjp.net/entry/2022/08/23/221737より取得しました。


.NET5でShift-JISを扱う

Encoding.GetEncoding("Shift_JIS");と書いたら例外がでた。

Unhandled exception. System.ArgumentException: 'Shift_JIS' is not a supported encoding name. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method. (Parameter 'name')

もう Shift_JISはデフォルト対応ではないみたい。

以下一行を追加すればOK

Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);



以上の内容はhttps://blog.systemjp.net/entry/2022/08/23/221737より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14