By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,009 Members | 2,859 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,009 IT Pros & Developers. It's quick & easy.

Change default encoding

P: n/a
Hi all
how can I change default encoding for saving C# files??
I want to set it always to Unicode -CodePage1200.
thanks.
Dec 28 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
perspolis <re*****@hotmail.com> wrote:
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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Dec 28 '05 #2

P: n/a
No,I mean with VS editor not with stream writer..after creating some class
files I want to be saved with Unicode encoding..
"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:MP************************@msnews.microsoft.c om...
perspolis <re*****@hotmail.com> wrote:
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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too

Dec 28 '05 #3

P: n/a
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" wrote:
No,I mean with VS editor not with stream writer..after creating some class
files I want to be saved with Unicode encoding..
"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:MP************************@msnews.microsoft.c om...
perspolis <re*****@hotmail.com> wrote:
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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too


Dec 28 '05 #4

P: n/a
I know that.I want it's done automatically not by selecting "Save with
Encoding"..can I do that?
"Mark R. Dawson" <Ma*********@discussions.microsoft.com> wrote in message
news:F9**********************************@microsof t.com...
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" wrote:
No,I mean with VS editor not with stream writer..after creating some class files I want to be saved with Unicode encoding..
"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:MP************************@msnews.microsoft.c om...
perspolis <re*****@hotmail.com> wrote:
> 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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too


Dec 28 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.