I wish my aspx pages to be interpreted as UTF-8 by browsers.
Apart from setting the following in the web.config file:
<globalizatio n fileEncoding="u tf-8" requestEncoding ="utf-8"
responseEncodin g="utf-8" />
1. Do I also have to specify <meta http-equiv="Content-Type"
content="text/html; charset=utf-8"in every aspx page?
2. Or also specify utf-8 in the page directive of every page?
In short, I am a bit worried that when I see the source of my generated
aspx pages I see no meta information regarding the encoding. Should I
also be adding this into every page or is it not necessary as long as
it's specified in web.config? 4 1560
Hi,
Steve wrote:
I wish my aspx pages to be interpreted as UTF-8 by browsers.
Apart from setting the following in the web.config file:
<globalizatio n fileEncoding="u tf-8" requestEncoding ="utf-8"
responseEncodin g="utf-8" />
1. Do I also have to specify <meta http-equiv="Content-Type"
content="text/html; charset=utf-8"in every aspx page?
It is not necessary. Setting the encoding in the configuration file adds
the specified information to the request. Using META is useful if you
don't have access to the request's header, but if you use server-side
code, it's better to use the request's header directly.
2. Or also specify utf-8 in the page directive of every page?
If you want the setting to be valid for each page in your application,
use the configuration file.
If you want to specify something different for a given page, use the
Page directive.
This is valid for every setting, not only encoding.
In short, I am a bit worried that when I see the source of my generated
aspx pages I see no meta information regarding the encoding. Should I
also be adding this into every page or is it not necessary as long as
it's specified in web.config?
To check that this is working, check "Auto-select" in View / Encoding in
IE. Then load your page. Then check what the browser uses in View /
Encoding. It should be UTF8 (which is not the default).
Also, you can use Fiddler to check the Request header.
HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Merci beaucoup Laurent!
That really put my mind at rest.
Thanks, Steve.
Laurent Bugnion wrote:
Hi,
Steve wrote:
I wish my aspx pages to be interpreted as UTF-8 by browsers.
Apart from setting the following in the web.config file:
<globalizatio n fileEncoding="u tf-8" requestEncoding ="utf-8"
responseEncodin g="utf-8" />
1. Do I also have to specify <meta http-equiv="Content-Type"
content="text/html; charset=utf-8"in every aspx page?
It is not necessary. Setting the encoding in the configuration file adds
the specified information to the request. Using META is useful if you
don't have access to the request's header, but if you use server-side
code, it's better to use the request's header directly.
2. Or also specify utf-8 in the page directive of every page?
If you want the setting to be valid for each page in your application,
use the configuration file.
If you want to specify something different for a given page, use the
Page directive.
This is valid for every setting, not only encoding.
In short, I am a bit worried that when I see the source of my generated
aspx pages I see no meta information regarding the encoding. Should I
also be adding this into every page or is it not necessary as long as
it's specified in web.config?
To check that this is working, check "Auto-select" in View / Encoding in
IE. Then load your page. Then check what the browser uses in View /
Encoding. It should be UTF8 (which is not the default).
Also, you can use Fiddler to check the Request header.
HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Adding to Laurent's correct on-target explanation, you should grab yourself
a copy of ieHTTPHeaders, which shows you all the HTTP headers
included in the page you're displaying. http://www.blunck.se/iehttpheaders/iehttpheaders.html
It's free...and very useful to verify whether any header is included in any page.
You turn it on, or off, after you install it,
by selecting "View", "Explorer Bar", "ieHttpHead ers" in IE.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Steve" <ba****@iranman ia.comwrote in message
news:11******** **************@ 73g2000cwn.goog legroups.com...
Merci beaucoup Laurent!
That really put my mind at rest.
Thanks, Steve.
Laurent Bugnion wrote:
>Hi,
Steve wrote:
I wish my aspx pages to be interpreted as UTF-8 by browsers.
Apart from setting the following in the web.config file:
<globalizatio n fileEncoding="u tf-8" requestEncoding ="utf-8"
responseEncodin g="utf-8" />
1. Do I also have to specify <meta http-equiv="Content-Type"
content="text/html; charset=utf-8"in every aspx page?
It is not necessary. Setting the encoding in the configuration file adds the specified information to the request. Using META is useful if you don't have access to the request's header, but if you use server-side code, it's better to use the request's header directly.
2. Or also specify utf-8 in the page directive of every page?
If you want the setting to be valid for each page in your application, use the configuration file.
If you want to specify something different for a given page, use the Page directive.
This is valid for every setting, not only encoding.
In short, I am a bit worried that when I see the source of my generated
aspx pages I see no meta information regarding the encoding. Should I
also be adding this into every page or is it not necessary as long as
it's specified in web.config?
To check that this is working, check "Auto-select" in View / Encoding in IE. Then load your page. Then check what the browser uses in View / Encoding. It should be UTF8 (which is not the default).
Also, you can use Fiddler to check the Request header.
HTH, Laurent -- Laurent Bugnion, GalaSoft Software engineering: http://www.galasoft-LB.ch PhotoAlbum: http://www.galasoft-LB.ch/pictures Support children in Calcutta: http://www.calcutta-espoir.ch
Thanks for that Juan. Will install it now.
Steve
Juan T. Llibre wrote:
Adding to Laurent's correct on-target explanation, you should grab yourself
a copy of ieHTTPHeaders, which shows you all the HTTP headers
included in the page you're displaying.
http://www.blunck.se/iehttpheaders/iehttpheaders.html
It's free...and very useful to verify whether any header is included in any page.
You turn it on, or off, after you install it,
by selecting "View", "Explorer Bar", "ieHttpHead ers" in IE.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Steve" <ba****@iranman ia.comwrote in message
news:11******** **************@ 73g2000cwn.goog legroups.com...
Merci beaucoup Laurent!
That really put my mind at rest.
Thanks, Steve.
Laurent Bugnion wrote:
Hi,
Steve wrote:
I wish my aspx pages to be interpreted as UTF-8 by browsers.
Apart from setting the following in the web.config file:
<globalizatio n fileEncoding="u tf-8" requestEncoding ="utf-8"
responseEncodin g="utf-8" />
1. Do I also have to specify <meta http-equiv="Content-Type"
content="text/html; charset=utf-8"in every aspx page?
It is not necessary. Setting the encoding in the configuration file adds
the specified information to the request. Using META is useful if you
don't have access to the request's header, but if you use server-side
code, it's better to use the request's header directly.
2. Or also specify utf-8 in the page directive of every page?
If you want the setting to be valid for each page in your application,
use the configuration file.
If you want to specify something different for a given page, use the
Page directive.
This is valid for every setting, not only encoding.
In short, I am a bit worried that when I see the source of my generated
aspx pages I see no meta information regarding the encoding. Should I
also be adding this into every page or is it not necessary as long as
it's specified in web.config?
To check that this is working, check "Auto-select" in View / Encoding in
IE. Then load your page. Then check what the browser uses in View /
Encoding. It should be UTF8 (which is not the default).
Also, you can use Fiddler to check the Request header.
HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Ohaya |
last post by:
Hi,
I'm trying to understand a situation where ASP seems to be "blocking" of
"queuing" requests. This is on a Win2K Advanced Server, with IIS5.
I've seen some posts (e.g.,
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=Tidy7IDbDHA.2108%40cpmsftngxa06.phx.gbl)
that indicate that ASP will queue up requests when they come in with the
same "session".
|
by: Haines Brown |
last post by:
I'm having trouble finding the character entity for the French
abbreviation for "number" (capital N followed by a small supercript
o, period).
My references are not listing it. Where would I find an answer to this
question (don't find it in the W3C_char_entities document).
--
Haines Brown
brownh@hartford-hwp.com
|
by: Benny Ng |
last post by:
Hi,All,
Export Method:
-------------------------------------------------------------------------
strFileNameExport = "Results"
Response.Clear()
Response.Buffer = True
Response.ContentType ="application/vnd.ms-excel" 'application/msword
|
by: Jimmy Shaw |
last post by:
Hi everybody,
Is there any SIMPLE way to convert from UTF-16 to UTF-32? I may be
mixed up, but is it possible that all UTF-16 "code points" that are 16
bits long appear just the same in UTF-32, but with zero padding and
hence no real conversion is necessary?
If I am completely wrong and some intricate conversion operation needs
to take place, can anyone give me some primer on the subject?
|
by: YYZ |
last post by:
I'm using asp, not asp.net. I've got some open ended questions that I
was really hoping someone in here could answer, or direct me to some
resources that will help me answer them on my own.
First, the session object. When a new user comes to my site, asp
creates a session object, and a session id on that object. That
session id is sent back to the client and stored as a cookie(?) that
can be used to identify a single user across...
| |
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |