PyCharm is changing the default encoding in my Django app

后端 未结 2 737
深忆病人
深忆病人 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 06:41

    Coming from OSX 10.14.2, I fixed it by changing my primary language to English (US) instead of English.

    This is also discussed here: https://stackoverflow.com/a/38557558/4960855

    0 讨论(0)
  • 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.

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