systemd python stdout encode變成ANSI - Linux

By Frederica
at 2017-11-26T22:59
at 2017-11-26T22:59
Table of Contents
在嘗試用systemd來掛載python3 script
碰到systemd會使python3 sys.stdout.encode變成ANSI
當有中文的時候就會出現fail
請問是否可以讓sys.stdout.encode保持utf-8?
謝謝
--
碰到systemd會使python3 sys.stdout.encode變成ANSI
當有中文的時候就會出現fail
請問是否可以讓sys.stdout.encode保持utf-8?
謝謝
--
Tags:
Linux
All Comments

By Quanna
at 2017-11-27T03:53
at 2017-11-27T03:53

By Gilbert
at 2017-11-29T20:53
at 2017-11-29T20:53

By Gary
at 2017-12-03T07:54
at 2017-12-03T07:54
Related Posts
寫成一行指令?

By Sarah
at 2017-11-26T17:19
at 2017-11-26T17:19
請問如何開啟xdmf檔案

By Heather
at 2017-11-26T14:09
at 2017-11-26T14:09
ssh傳檔問題

By Audriana
at 2017-11-26T12:55
at 2017-11-26T12:55
樹莓派vsftpd

By Xanthe
at 2017-11-26T11:57
at 2017-11-26T11:57
關於CentOS 7的Firewall與iptables

By Irma
at 2017-11-24T13:11
at 2017-11-24T13:11