473,385 Members | 1,958 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,385 software developers and data experts.

VS2005 : how do you set DEFAULT encoding of cs files to UTF-8 ?


I'm developing a ASP.Net 2.0 Web site, all my pages are in UTF-8, BUT
when I add a new aspx page, the aspx file is created in UTF-8, but the
aspx.cs file is created as Western...1252. It is annoying to have to go to
the Advanced save Options dialogs for EACH .cs file (and accented characters
coming from compiled .cs saved as 1252 do not show correctly).

Any way to change the default .cs file creation option ?

NB : I know that "international" characters can end up in resx files, but
I'd like to avoid it in a number of places (UTF-8 math or symbols characters
DO NOT need to be translated for instance).

thanks in advance.
Mar 6 '06 #1
3 3736
Thus wrote Michel,
I'm developing a ASP.Net 2.0 Web site, all my pages are in UTF-8,
BUT when I add a new aspx page, the aspx file is created in UTF-8, but
the aspx.cs file is created as Western...1252. It is annoying to have
to go to the Advanced save Options dialogs for EACH .cs file (and
accented characters coming from compiled .cs saved as 1252 do not show
correctly).

Any way to change the default .cs file creation option ?


Weird -- I'm just working on a blog entry on that subject. What I've found
is that the only case in which VS2005 does *not* use UTF-8 as default encoding
for source files is when using pages with inline code.

Hm...
--
Joerg Jooss
ne********@joergjooss.de
Mar 6 '06 #2

"Joerg Jooss" <ne********@joergjooss.de> a écrit dans le message de news:
94**************************@msnews.microsoft.com...
Thus wrote Michel,
I'm developing a ASP.Net 2.0 Web site, all my pages are in UTF-8,
BUT when I add a new aspx page, the aspx file is created in UTF-8, but
the aspx.cs file is created as Western...1252. It is annoying to have
to go to the Advanced save Options dialogs for EACH .cs file (and
accented characters coming from compiled .cs saved as 1252 do not show
correctly).

Any way to change the default .cs file creation option ?


Weird -- I'm just working on a blog entry on that subject. What I've found
is that the only case in which VS2005 does *not* use UTF-8 as default
encoding for source files is when using pages with inline code.

Hm...


Not my case, I dislike inline code.

Mar 6 '06 #3
Thus wrote Michel,
"Joerg Jooss" <ne********@joergjooss.de> a écrit dans le message de
news: 94**************************@msnews.microsoft.com...

[...]
Weird -- I'm just working on a blog entry on that subject. What I've
found is that the only case in which VS2005 does *not* use UTF-8 as
default encoding for source files is when using pages with inline
code.

Hm...

Not my case, I dislike inline code.


Mine neither, it was pure chance that I found that.

Cheers,
--
Joerg Jooss
ne********@joergjooss.de
Mar 6 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

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;...
3
by: Robert | last post by:
I have an application with custom configuration sections in it's app.config file. Here's a shortened excerpt: <monitors> <monitor...
5
by: NoNickname | last post by:
Basically, how do I know that the release versions of all components are being published? The Build | Configuration Manager is confusing me a little in VS2005. I have three projects in my...
10
by: musosdev | last post by:
Hi guys I'm trying to migrate to VS2005... I've managed to do that, but realised I'd opened my web projects as file projects, and I'm getting the error about network BIOS command limit. ...
3
by: musosdev | last post by:
Hi guys Okay, I've setup my projects to open and compile fine in VS2005 using FPSE and remote web, but it's *really* slow. So I thought I'd have a go at doing it the normal way, by loading from...
3
by: musosdev | last post by:
Hi guys I've got the following error on a project which is running locally on a vs2005 machine (built in webserver), trying to connect to my win2k3 server active directory. the error is... ...
15
by: Joseph Geretz | last post by:
OK, I'll admit it up front - I just don't get it. Here's our previous VS2003 development model. Developers develop the WS solution on their own workstations, using their own IIS web servers...
7
by: MrNobody | last post by:
I am having alot of difficulty with text files in .NET when they have special characters like í, ó, ç etc... When i read a text file with them and then write it back out it ignores all of...
21
by: Peter Bradley | last post by:
Hi all, This post is sort of tangentially related to my earlier posts on configuration files for DLLs. Does anyone know how to create typed DataSets using VS2005's new DataSet designer, but...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.