How to Set P4VFS's P4CHARSET
gaojun-lin opened this issue · comments
gaojun-lin commented
How to Set P4VFS's P4CHARSET
DogeBotZ commented
Hi, to achieve that you can make use of P4CONFIG:
p4 set P4CONFIG=p4config.txt
in your global environment.- Then for instance if you have a workspace which root is D:\MyP4, you can create a D:\MyP4\p4config.txt text document, inside put a line
P4CHARSET=utf8
(or whichever charset you would like to use). - Next time when you are running P4VFS from your workspace directory (D:\MyP4 in the above example), P4VFS will pickup P4 environment variables you set in your p4config.txt.
FYI, you may also define other P4 environment variables such as P4PORT
P4USER
P4CLIENT
in that p4config.txt.
Hope that helps.