質問編集履歴
2
コード変更
title
CHANGED
File without changes
|
body
CHANGED
@@ -49,10 +49,22 @@
|
|
49
49
|
</div><!-- main 終わり -->
|
50
50
|
|
51
51
|
```
|
52
|
+
|
53
|
+
|
52
54
|
```python
|
53
55
|
# -*- coding: utf-8 -*-
|
56
|
+
"""
|
57
|
+
Created on Tue Feb 19 16:33:29 2019
|
58
|
+
|
59
|
+
"""
|
54
60
|
import cgi
|
61
|
+
import cgitb
|
62
|
+
cgitb.enable()
|
55
63
|
|
64
|
+
import sys
|
65
|
+
sys.stdout.reconfigure(encoding='utf-8')
|
66
|
+
|
67
|
+
|
56
68
|
""" --- データの受け取り --- """
|
57
69
|
param = cgi.FieldStorage()
|
58
70
|
param_dict = param.list
|
@@ -76,10 +88,10 @@
|
|
76
88
|
""" --- ヒアドキュメント --- """
|
77
89
|
|
78
90
|
import textwrap
|
79
|
-
|
91
|
+
|
80
92
|
string = textwrap.dedent('''
|
81
93
|
Content-type: text/html
|
82
|
-
|
94
|
+
|
83
95
|
<html><head>
|
84
96
|
<title>FormMail</title>
|
85
97
|
<style type="text/css">
|
@@ -151,9 +163,10 @@
|
|
151
163
|
|
152
164
|
def sub():
|
153
165
|
import textwrap
|
166
|
+
|
154
167
|
string = textwrap.dedent('''
|
155
168
|
Content-type: text/html
|
156
|
-
|
169
|
+
<meta charset="UTF-8">
|
157
170
|
<html><head>
|
158
171
|
|
159
172
|
<title>文字化けテスト</title>
|
1
誤字
title
CHANGED
File without changes
|
body
CHANGED
@@ -205,4 +205,4 @@
|
|
205
205
|
|
206
206
|
### 補足情報(FW/ツールのバージョンなど)
|
207
207
|
windows10 64bit
|
208
|
-
python3.
|
208
|
+
python3.7
|