Terminal doesn't see variables in .profile file
Hi,
I am trying to install a Nativescript plugin & build the app, but it gives that warning:
WARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
Consider adding the following to ~/.profile:
export LANG=en_US.UTF-8
and it fails. If I run the same command (tns run ios --emulator) it works fine. I already added the export line to the .profile and .bash_profile files. (Also restarted the terminal/app)
I also added it as environment variable in Tools/Terminal settings of PhpStorm.
Why do get this error and how can I fix it?
Best Regards.
请先登录再写评论。
What is the output of "locale" command both in terminal started from IDE and apart of it?
It seems that `LANG="en_US.UTF-8"` alone isn't enough, you have to set
```
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
```
See https://github.com/CocoaPods/CocoaPods/issues/6333#issuecomment-866591220