473,378 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 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 8205
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Ann | last post by:
Hi, Is there any way to Change encoding of Java Vm to ISO-8859-1? i am using Java vm along with an application called opencms. I get the following error message.. Error: the encoding of your...
18
by: Klaus Alexander Seistrup | last post by:
Hi, After upgrading my Python interpreter to 2.3.1 I constantly get warnings like this: DeprecationWarning: Non-ASCII character '\xe6' in file mumble.py on line 2, but no encoding declared;...
0
by: Brad Wood | last post by:
I have a web service that returns an xml doc as a string. I use a StringWriter with my XmlTextWriter and the encoding attribute for the document becomes utf-16. If I save the result of the web...
0
by: 6kjfsyg02 | last post by:
I have written a client to a web service. I use ASP.NET 1.1 for the client. It worked until I tried to send accented characters. Then the service answered that my signature is not valid. I was...
0
by: sindhuja | last post by:
How to change the default encoding of asp .net webservice to ISO-8859-1? I have tried the following but have ' nt got my work done > I modified the globalization attribute in web.config > I...
14
by: Zoro | last post by:
My task is to read html files from disk and save them onto SQL Server database field. I have created an nvarchar(max) field to hold them. The problem is that some characters, particularly html...
11
by: cybervigilante | last post by:
I can't seem to change the include path on my local winmachine no matter what I do. It comes up as includ_path .;C:\php5\pear in phpinfo() but there is no such file. I installed the WAMP package...
4
by: Ron Garret | last post by:
Is there a way to change the default string encoding used by the string.encode() method? My default environment is utf-8 but I need it to be latin-1 to avoid errors like this: Traceback (most...
1
by: ziycon | last post by:
I'm wondering how you change the default encoding on SQL server and also how do you change the encoding on existing tables in a SQL DB?
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.