teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

情報の修正

2017/03/15 09:02

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -1,4 +1,4 @@
1
- UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 520-521: illegal cp932 surrogate
1
+ UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 100-101: illegal cp932 surrogate
2
2
  とエラーが出ました。
3
3
  ```ここに言語を入力
4
4
  with io.open('data/xxx2.csv', 'w', encoding='cp932') as fout:

1

情報の変更

2017/03/15 09:02

投稿

退会済みユーザー
title CHANGED
@@ -1,1 +1,1 @@
1
- UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 520-521: illegal UTF-16 surrogate
1
+ UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 520-521: illegal cp932 surrogate
body CHANGED
@@ -1,4 +1,4 @@
1
- UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 520-521: illegal UTF-16 surrogate
1
+ UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 520-521: illegal cp932 surrogate
2
2
  とエラーが出ました。
3
3
  ```ここに言語を入力
4
4
  with io.open('data/xxx2.csv', 'w', encoding='cp932') as fout: