Change default encoding

  • Thread starter Thread starter perspolis
  • Start date Start date
P

perspolis

Hi all
how can I change default encoding for saving C# files??
I want to set it always to Unicode -CodePage1200.
thanks.
 
perspolis said:
how can I change default encoding for saving C# files??
I want to set it always to Unicode -CodePage1200.

Why not just always specify it when you start writing the file
(presumably with a StreamWriter)? That would make it a lot clearer to
anyone reading the code.
 
No,I mean with VS editor not with stream writer..after creating some class
files I want to be saved with Unicode encoding..
 
Hi perspolis,
if you go to the "Save As" dialog click on the down arrow on the Save
button, it will give you the option to "Save with encoding..." then you can
then choose the 1200 codepage from the list.

Hope that helps
Mark Dawson
http://www.markdawson.org



perspolis said:
No,I mean with VS editor not with stream writer..after creating some class
files I want to be saved with Unicode encoding..
 
I know that.I want it's done automatically not by selecting "Save with
Encoding"..can I do that?
Mark R. Dawson said:
Hi perspolis,
if you go to the "Save As" dialog click on the down arrow on the Save
button, it will give you the option to "Save with encoding..." then you can
then choose the 1200 codepage from the list.

Hope that helps
Mark Dawson
http://www.markdawson.org
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top