Visual Studio Development Bookmark and Share   
 index > Visual Studio Setup and Installation > Default File Character Encoding
 

Default File Character Encoding

Hi,
Is there a way to change the default character encoding that Visual studio uses to save files? My problem is that VS2008currently saves files in UTF-8 withSignature, but this causes all sorts of problems when savingSQL files and executing them via the osql tool in SQLServer 2000.

Incidently, the problems are caused by the BOM at the start of the file - saving the files as UTF-8 without Signature solves this,but i can't see a way to set that as default.


Anyideas?


Cheers,
sentinalx  Wednesday, November 19, 2008 4:46 PM
VS2005/8 comes with Advanced save as option which lets you save your code as the Collation you can use in SQL Server 2000 and above. You must know SQL Server uses UCS-2 which is almost the same as UTF16, so you should try and use the Advanced Save as option in VS2008 it is available in your file menu with your solution code behind open.




Asp.net MVP, MCPD Web C#, MCTS TFS, MCITP BI and DBA
Caddre  Wednesday, November 19, 2008 11:36 PM
VS2005/8 comes with Advanced save as option which lets you save your code as the Collation you can use in SQL Server 2000 and above. You must know SQL Server uses UCS-2 which is almost the same as UTF16, so you should try and use the Advanced Save as option in VS2008 it is available in your file menu with your solution code behind open.




Asp.net MVP, MCPD Web C#, MCTS TFS, MCITP BI and DBA
Caddre  Wednesday, November 19, 2008 11:36 PM

You can use google to search for other answers

Custom Search

More Threads

• Graphics files no longer included with Visual Studio?
• Creating WPF Project - Receive R6034 Error
• Issue: The IntelliSense feature for a Visual C# .NET project stops working in the Visual Studio .NET IDE
• Visual Studio 2008 SP1: Missing "none" check out lock type.
• How do you turn off VS 2008 random error generator?
• Microsoft Visual Studio 2008 SP1 Installation: Error applying transforms. Verify that the specified transform paths are valid.
• Menu Control and Ajax
• where to download Visual Studio Professional 2005
• Cant instal C#.NET Application
• Security Configuration?