質問編集履歴
1
見出しの追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
### 現状
|
2
|
+
|
1
3
|
python3のプログラムをGCP(Ubuntu16.04)で実行した時は特に問題なく実行できたのですが、
|
2
4
|
Dockerで同じファイルを実行すると下記のエラーが表示されました。
|
3
5
|
|
@@ -9,8 +11,10 @@
|
|
9
11
|
[https://stackoverflow.com/questions/9942594/unicodeencodeerror-ascii-codec-cant-encode-character-u-xa0-in-position-20?rq=1&utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
|
10
12
|
](https://stackoverflow.com/questions/9942594/unicodeencodeerror-ascii-codec-cant-encode-character-u-xa0-in-position-20?rq=1&utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa)
|
11
13
|
|
14
|
+
#### 仮説
|
12
15
|
GCPにはもともと用意(インストールや設定)されている何かがDockerから作成したUbuntuには含まれていないためにこういった問題が起こるのでしょうか?
|
13
16
|
|
17
|
+
#### 課題・質問
|
14
18
|
上記の対策に書かれているようにプログラムを編集する方法もいいのですが、GCPでは動いているプログラムなのでプログラムを編集するよりDocker作成時に何かをインストールや設定をして解決したいと考えています。
|
15
19
|
|
16
20
|
(他の場所でもプログラムの変更が必要になったり、また別のプログラムを書くときに毎回このエラーのことを気にしながら書くのは大変なので…)
|