471,354 Members | 2,095 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

Change default encoding

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
4 8048
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
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
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
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.

Similar topics

2 posts views Thread by Ann | last post: by
18 posts views Thread by Klaus Alexander Seistrup | last post: by
reply views Thread by Brad Wood | last post: by
reply views Thread by 6kjfsyg02 | last post: by
11 posts views Thread by cybervigilante | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.