PyCharm is changing the default encoding in my Django app

后端 未结 2 757
深忆病人
深忆病人 2021-01-05 06:07

I am running into an issue where plyplus is erroring out with:

  File \"/Users/FOO/.virtualenvs/ff/lib/python2.7/site-packages/plyplus/grammars/         


        
2条回答
  •  青春惊慌失措
    2021-01-05 07:04

    PyCharm passes a blank value for the LC_CTYPE environment variable.

    I need to explicitly add an environment variable to my run config: LC_CTYPE=en_US.UTF-8

    My shell has this environment variable set. It's strange that PyCharm sets it to a blank value.

提交回复
热议问题