We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32db204 commit 4d53508Copy full SHA for 4d53508
1 file changed
parse.py
@@ -17,7 +17,7 @@
17
def parse():
18
optParser = getOptParser()
19
opts,args = optParser.parse_args()
20
- encoding = None
+ encoding = "utf8"
21
22
try:
23
f = args[-1]
@@ -30,7 +30,8 @@ def parse():
30
if contentType:
31
(mediaType, params) = cgi.parse_header(contentType)
32
encoding = params.get('charset')
33
- except: pass
+ except:
34
+ pass
35
elif f == '-':
36
f = sys.stdin
37
else:
0 commit comments