diff --git a/git-p4.py b/git-p4.py index 65feb22f5..603045050 100755 --- a/git-p4.py +++ b/git-p4.py @@ -2219,7 +2219,7 @@ def streamOneP4File(self, file, contents): encoding = 'utf8' if gitConfig('git-p4.pathEncoding'): encoding = gitConfig('git-p4.pathEncoding') - relPath = relPath.decode(encoding).encode('utf8', 'replace') + relPath = relPath.decode(encoding, 'replace').encode('utf8', 'replace') if self.verbose: print 'Path with non-ASCII characters detected. Used %s to encode: %s ' % (encoding, relPath)