Scanning Perforce Repository Fails With 'Unable to determine latest revision. Check output encoding'
Problem
You get the following error from a perforce repository:
ERROR - Problem processing revisions from repo localhost:1666//depot due to class com.cenqua.fisheye.perforce.client.P4ClientException - Unable to determine latest revision. Check output encoding
com.cenqua.fisheye.perforce.client.P4ClientException: Unable to determine latest revision. Check output encoding
at com.cenqua.fisheye.perforce.client.P4Client.getLatestRevision(P4Client.java:90)
at com.cenqua.fisheye.perforce.P4Scanner.getLatestRevision(P4Scanner.java:742)
at com.cenqua.fisheye.rep.RepositoryScanner.processRevisions(RepositoryScanner.java:323)
at com.cenqua.fisheye.rep.RepositoryScanner.slurpRepository(RepositoryScanner.java:268)
at com.cenqua.fisheye.rep.RepositoryScanner.slurp(RepositoryScanner.java:188)
at com.cenqua.fisheye.rep.RepositoryScanner.ping(RepositoryScanner.java:121)
at com.cenqua.fisheye.perforce.P4RepositoryEngine.doSlurp(P4RepositoryEngine.java:73)
Cause
This is caused due to a mismatch between the p4 client and server encoding.
You might get this error, if you have set the P4CHARSET environment variable to UTF-8, but you are not running your perforce server in unicode.
Resolution
To resolve the problem you will need to make sure the perforce server and client character are correctly configured.
Consult with your perforce administrator if you do not know what these settings should be. Also, refer to Perforce's knowledge base article.