Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change text-encoding to iso-8859-1 in visual studio 2008

My visual studio is now saving files in utf-8. How do i configure visual studio to save it iso-8859-1?

like image 526
burnt1ce Avatar asked Sep 27 '09 03:09

burnt1ce


People also ask

How do I change encoding in Visual Studio?

Set the option in Visual Studio or programmaticallySelect the Configuration Properties > C/C++ > Command Line property page. In Additional Options, add the /utf-8 option to specify your preferred encoding. Choose OK to save your changes.

Should I use UTF-8 or ISO 8859?

Most libraries that don't hold a lot of foreign language materials will be perfectly fine with ISO8859-1 ( also called Latin-1 or extended ASCII) encoding format, but if you do have a lot of foreign language materials you should choose UTF-8 since that provides access to a lot more foreign characters.

What is the difference between UTF-8 and ISO 8859-1?

UTF-8 is a multibyte encoding that can represent any Unicode character. ISO 8859-1 is a single-byte encoding that can represent the first 256 Unicode characters. Both encode ASCII exactly the same way.


1 Answers

In Visual Studio, File -> Advanced Save Options -> in "Encoding" select "Western European (ISO) - Codepage 28591".

According to this page, iso-8859-1 is called 28591 in MS lingo

like image 169
Rom Avatar answered Oct 18 '22 03:10

Rom