Weird. Mine defaults to 1252 (My user locale is French/Belgium).
What type of file are you creating (.cpp, .cs, .xml,...) ?
Serge.
http://www.apptranslator.com - Localization tool for your C++ applications
> When I add a new file to a VS 2008 project, it saves it to disk using
> UTF-8
[quoted text clipped - 10 lines]
>
> -Dave
Dave Herrmann - 09 May 2008 16:31 GMT
Well, it appears this only happens in my Database projects. I have a VS 2008
database project that contains a number of SQL stored procedures. If I select
Add a New Item option and pick SQL script, or stored procedure as the file,
it creates a new file just fine. But when I select File-->Advanced Save it
shows the code page as Unicode (UTF-8 with signature) - Codepage 65001. If I
forget to save with a different encoding and then try to compile all my
stored procedures through a VB script, the new one will fail because of the
encoding bytes at the beginning of the file.
I'm not sure why this only happens with my database project files. I tried
this with a C++ project and any new files are created using codepage 1252,
Western European (Windows) which is what I really want.
I did not see any way to change this default behavior for database project
files so that's why I was posting this in case there was a way that I'm not
aware of.
Thanks.
-Dave
> Weird. Mine defaults to 1252 (My user locale is French/Belgium).
> What type of file are you creating (.cpp, .cs, .xml,...) ?
[quoted text clipped - 16 lines]
> >
> > -Dave