Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS 2012 Encoding in the declaration 'utf-16' does not match document 'utf-8'

When I open Visual Studio 2012, I am greeted with the message "Visual Studio The encoding in the declaration 'utf-16' does not match the encoding of the document 'utf-8'".

Visual Studio Error Dialog

Does anyone know why this might be happening? Or what troubleshooting I should do?

like image 875
Ryan Gates Avatar asked Oct 22 '22 01:10

Ryan Gates


1 Answers

It turns out that the root cause was an issue connecting to the TFS server, but I had to clear out my Team Explorer cache as well.

To clear out your Team Explorer cache, delete the following folders

  • C:\Users\[USER]\AppData\Local\Microsoft\Team Foundation\2.0\Cache
  • C:\Users\[USER]\AppData\Local\Microsoft\Team Foundation\3.0\Cache
like image 158
Ryan Gates Avatar answered Dec 04 '22 22:12

Ryan Gates