Jump to content


Member Since 12 Mar 2014
Offline Last Active Oct 27 2020 08:12 AM

Topics I've Started

Set character encoding is not working in P4Merge

09 October 2020 - 07:03 AM


our P4 server is unicode mode, and we are using "utf-8 no bom" when connnected. But if I diff a file, whatever I changed in Perferences->Character encoding, it's not working.
Attached File  123.png   9.37K   19 downloads

if I changed it in File->Character Encoding, it will work, but cannot save which means I have to choose again in the next time.
Attached File  222.png   12.45K   13 downloads

Is anyone has any idea about this? thanks a lot.

FYI, P4 server version is 2020, P4V I have tried with 2015, 2019 and 2020, and the result is the same.

Changelist desc has messy code after turn on unicode mode

02 October 2020 - 09:39 AM

I have setup a small server, and use vim instead of iconv to convert the encoding, and it looks OK, I will recover my product server and try again.

I have tried to use a script to encode and decode the description and update the changelist with correct one, looks OK.
however some path are also have garbled code, should I mark for delete them,  and submit new ones with correct characters again? and it looks like I should rename all of the folders in Perforce versioned files which have garbled code in it at first.


I have followed this topic https://community.pe.../s/article/2479 and transfered an existed P4 server to unicode mode, but the changelist description has messy code after that, however if I submit a new changelist it's OK.

the server OS is Windows, and I got the original encoding of checkpoint file with command tool "file original_checkpoint_file", it's "ISO-8859".
so I converted the checkpoint file with command "iconv -f ISO-8859-1 -t UTF-8 original_checkpoint_file > new_checkpoint_file", and then finished all steps successfully, server starts OK, unicode mode turns on OK, but the only problem is the changelist description.

is there anyone has any idea about this? thanks a lot.

Can I break the creating checkpoint process

18 July 2020 - 07:08 AM


I'm trying to create a checkpoint which the size of journal file is too large (around 300GB), it looks like will take a long time. But if our team want to use perforce emergency, can I break the checkpoint process? Or if someone could tell me how long will it takes when the journal file is large. Thanks a lot.

What's the suggested P4API for developing custom tool on MacOS

17 December 2019 - 12:02 PM


I'm learning how to develop a custom tool in P4V on MacOS, but I'm not sure which P4API should I choose. I only have experience of making something with .Net P4API on Windows. I will be very grateful if you can show me a way.