Python3 UnicodeDecodeError

前端 未结 1 708
耶瑟儿~
耶瑟儿~ 2021-01-07 10:31

I have a Django 1.8 app running on a server with Python 3 and I get a UnicodeDecodeError when logging and printing strings with special characters.

>:python

相关标签:
1条回答
  • 2021-01-07 10:54

    LC_CTYPE format as follows: en_US.UTF-8 (char map after the dot) Then python uses it as default encoding for logging and io.

    0 讨论(0)
提交回复
热议问题