I am having issues using TeamCity's Perforce checkout, when some of my files are in utf-16 format. Here's the problem:
I have a unicode enabled Perforce server, in which are stored some utf-16 files. My p4 client is version 2007.2, which can handle this encoding.
My build agent has it's p4charset set as utf8, however according to the Perforce docs this shouldn't be applied to the utf-16 files.
If I perform a manual sync on the command line, using the -C utf8 option, the files are correctly retrieved as utf-16.
If I then get TeamCity to checkout the files (I have set the charset to be utf8 on the Version Control Settings page), they are retrieved as ANSI.
This is causing me very subtle problems, and I need to fix it!
Any help would be much appreciated!