Scanning Perforce Repository Fails With 'Unable to determine latest revision. Check output encoding'

Still need help?

The Atlassian Community is here for you.

Ask the community


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(
   at com.cenqua.fisheye.perforce.P4Scanner.getLatestRevision(
   at com.cenqua.fisheye.rep.RepositoryScanner.processRevisions(
   at com.cenqua.fisheye.rep.RepositoryScanner.slurpRepository(
   at com.cenqua.fisheye.rep.RepositoryScanner.slurp(
   at com.cenqua.fisheye.perforce.P4RepositoryEngine.doSlurp(


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.


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.


Last modified on Feb 19, 2016

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.