Python3 UnicodeDecodeError

前端 未结 1 707
耶瑟儿~
耶瑟儿~ 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)
提交回复
热议问题