views:

25

answers:

2

Everytime I open a file in vs2008, it asks me about fixing the encoding. it also, if the file is open, asks me if I want to close the file before showing it.

I'm pretty sure I fixed this issue once before, but I can't remember how.

Does anyone remember how to fix it?

Thanks,

Cal-

A: 

Well, if you are editing your files with more than one editor, chances are you are saving with different encodings. Visual studio can detect this and try to recover the file. Try to save your files to a common encoding (via "Save As") and make sure that all text editors you are using on that file support the encoding you selected.

Polaris878
but if that was al lthat was going on, I'd open the file, get the popup, close the file , repoen the file and not get the popup... alas I'm gettign it eveytime, even if I open and close it in series.(I'm also not using multiple editors, but I am opening .rdlc fiels as xml to edit them, which is whenthe problem started) thanks,.
Eric Brown - Cal
A: 

Here is the fix:

http://social.msdn.microsoft.com/Forums/en-SG/vssetup/thread/35fcbb4d-3511-4f79-b3cd-6d05883b4c6f

basically the default editor for .cs files was set to "CSharp Editor (with encoding)"

Change the default back to the non "(with encoding)" flavor of the editor and beauty and joy are once again a part of you life!

Cal-

Eric Brown - Cal