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
3030
3131# Update PATH environment variable + set Python buffer to make Docker print every message instantly.
3232ENV PATH=/root/.local:$PATH \
33- PYTHONUNBUFFERED=1
33+ PYTHONUNBUFFERED=1\
34+ PYTHONIOENCODING=utf-8\
35+ PYTHONLEGACYWINDOWSSTDIO=utf-8
3436
3537# copy only the dependencies installation from the 1st stage image
3638COPY --from=builder /root/.local /root/.local
Original file line number Diff line number Diff line change 3535
3636_news_envelopes = []
3737
38+ # Config the encoding for the console
39+ sys .stdin .reconfigure (encoding = 'utf-8' )
40+ sys .stdout .reconfigure (encoding = 'utf-8' )
41+
3842''' MRN Process Code '''
3943
4044
Original file line number Diff line number Diff line change 4545mrn_item = 'MRN_STORY'
4646_news_envelopes = []
4747
48+ # Config the encoding for the console
49+ sys .stdin .reconfigure (encoding = 'utf-8' )
50+ sys .stdout .reconfigure (encoding = 'utf-8' )
51+
4852
4953
5054class WebSocketSession :
You can’t perform that action at this time.
0 commit comments