<p>When we create stored procedures in Visual Studio (with the extension .sql) the file encoding is automatically set to 'Unicode (UTF-8 with signature) - Codepage 65001'.</p>

<p>This causes ours DBA's problems as their scripts don't like it.</p>

<p>We have to manually go in and change them to 'Western European (windows) - Codepage 1252'.</p>

<p>This only seems to be happening since we upgraded to VS 2008 from 2005. Can anyone explain whats going on and how to stop it?</p>

[{'answer_id': 45466, 'author': 'Codeslayer', 'author_id': 4021, 'author_profile': 'https://Stackoverflow.com/users/4021', 'pm_score': 3, 'selected': True, 'text': '<p>I think somebody faced a similar problem like yours and had the following workaround which is posted at</p>\n\n<p><a href="http://connect.microsoft.com/VisualStudio/feedback/Workaround.aspx?FeedbackID=319830" rel="nofollow noreferrer">http://connect.microsoft.com/VisualStudio/feedback/Workaround.aspx?FeedbackID=319830</a></p>\n'}, {'answer_id': 45503, 'author': 'Simon Keep', 'author_id': 1127460, 'author_profile': 'https://Stackoverflow.com/users/1127460', 'pm_score': 2, 'selected': False, 'text': "<p>To summarise the link provided by Codeslayer (in case the page url changes)...</p>\n\n<p><em>Change the sql file templates to ANSI encoding by opening with notepad and then saving it as an ANSI file. You can do the same for files already created.\n\\Common7\\Tools\\Templates\\Database Project Items</em></p>\n\n<p>You've just made our DBA's very happy!</p>\n"}, {'answer_id': 3637408, 'author': 'Matt Connolly', 'author_id': 2845, 'author_profile': 'https://Stackoverflow.com/users/2845', 'pm_score': 2, 'selected': False, 'text': '<p>For Visual Studio 2010, there is another set of files you need to update:</p>\n\n<p>C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VSTSDB\\Extensions\\SqlServer\\Items</p>\n'}]
['https://Stackoverflow.com/questions/45426', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1127460/']