To solve this issue, there are two possible solutions:
- Switch your Perforce Server to the Unicode enabled mode.
This solution will help only if your character encoding is supported by Perforce. Switching the server to 'unicode mode', also called 'i18n mode', is a decision that affects all Perforce users and should not be made lightly.
See KB article "Internationalization and Localization
" for more details.
Switching to Perforce 'unicode mode' requires that you set the P4CHARSET environment variable (command line) or character encoding (P4V) to UTF-8 for all clients connecting to the server. This also causes Perforce client programs to translate the contents of files of type "unicode" to UTF-8.
For a full list of supported character encoding run the following command:
p4 help charset
- Change the locale of your Linux environment.
For the command line shell (Terminal), you can change the character encoding of your terminal using the menu "Terminal > Set Character Encoding".
For P4V, check if your character encoding is installed in your Ubuntu environment by running:
If your preferred character encoding is not installed, perform the following steps to install it:
a) Add your character encoding to /var/lib/locales/supported.d/local (for example "en_GB ISO-8859-1")
b) Run the following command:
Now you can start P4V using your newly installed character encoding, for example: