File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,9 @@ WORKDIR /app
30
30
31
31
# Update PATH environment variable + set Python buffer to make Docker print every message instantly.
32
32
ENV PATH=/root/.local:$PATH \
33
- PYTHONUNBUFFERED=1
33
+ PYTHONUNBUFFERED=1\
34
+ PYTHONIOENCODING=utf-8\
35
+ PYTHONLEGACYWINDOWSSTDIO=utf-8
34
36
35
37
# copy only the dependencies installation from the 1st stage image
36
38
COPY --from=builder /root/.local /root/.local
Original file line number Diff line number Diff line change 35
35
36
36
_news_envelopes = []
37
37
38
+ # Config the encoding for the console
39
+ sys .stdin .reconfigure (encoding = 'utf-8' )
40
+ sys .stdout .reconfigure (encoding = 'utf-8' )
41
+
38
42
''' MRN Process Code '''
39
43
40
44
Original file line number Diff line number Diff line change 45
45
mrn_item = 'MRN_STORY'
46
46
_news_envelopes = []
47
47
48
+ # Config the encoding for the console
49
+ sys .stdin .reconfigure (encoding = 'utf-8' )
50
+ sys .stdout .reconfigure (encoding = 'utf-8' )
51
+
48
52
49
53
50
54
class WebSocketSession :
You can’t perform that action at this time.
0 commit comments