all groups > visual studio .net setup > march 2004 >
You're in the

visual studio .net setup

group:

Default encoding for ASPX pages


Default encoding for ASPX pages Peter Afonin
3/30/2004 8:57:07 PM
visual studio .net setup:
Hello:

How to set the default encoding for aspx pages? I've done it somehow long
time ago in VS.Net 2002, now I cannot figure out how to do it in VS.Net
2003. I tried VS.Net options, project options - couldn't find anything.

I would appreciate your help.

Thank you,

--
Peter Afonin

Re: Default encoding for ASPX pages Ed Kaim [MSFT]
3/30/2004 10:50:37 PM
Check in
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config". There
is a section under <System.Web> for <globalization> where you can set
encoding.

[quoted text, click to view]

Re: Default encoding for ASPX pages Peter Afonin
3/31/2004 12:32:24 PM
Thank you very much, I've found it.

Could you please help me a little further?

This is what I have for globalization:

<globalization requestEncoding="utf-8" responseEncoding="utf-8"/>

I need UTF-8. However, the only encoding that works for me is "UTF-8 with
signature". If I save an aspx file as "UTF-8 without signature" - it doesn't
work.

I have a web site in Russian. For the reason unknown to me the Cyrillic
encoding that I use in HTML files doesn't work in ASPX pages. "UTF-8 with
signature" is the only encoding that displays Russian characters correctly
on the web site. This is probably because my web hosting provider doesn't
have Cyrillic support enabled, since on my computer Cyrillic encoding works
OK. However, I never have this problem with HTML pages.

So is there any way to differentiate in the machine.config file between
UTF-8 with and without signature?

Thank you,

Peter

[quoted text, click to view]

AddThis Social Bookmark Button