回答編集履歴
1
解決策の追記
test
CHANGED
@@ -4,3 +4,11 @@
|
|
4
4
|
sw = new StreamWriter(path, true, Encoding.UTF8);
|
5
5
|
```
|
6
6
|
|
7
|
+
### 追記
|
8
|
+
ビルド後のアプリケーションで以下のエラーが発生していたようです。
|
9
|
+
```
|
10
|
+
NotSupportedException: Encoding 932 data could not be found. Make sure you have correct international codeset assembly installed and enabled.
|
11
|
+
```
|
12
|
+
自分はUTF8にしても不都合がなかったので試していないですが、どうしてもShift JISを使いたい方は以下の方法でエンコードに関わるdllファイルをビルド時に組み込むことができるようです。
|
13
|
+
|
14
|
+
https://baba-s.hatenablog.com/entry/2019/03/18/155000
|