
446
|
Chapter 20: web.config Reference
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Attributes
requestEncoding
Specifies the assumed encoding of incoming requests. This can be any valid
encoding string and should match the
responseEncoding attribute. The
default is
UTF-8. This attribute is optional.
responseEncoding
Specifies the content encoding of responses. This can be any valid encoding
string and should match the
requestEncoding attribute. The default is UTF-8.
This attribute is optional.
fileEncoding
Specifies the encoding used to parse .aspx, .asmx, and .asax files. This
attribute is optional.
culture
Specifies the assumed culture for incoming requests. The value can be any
valid culture string. This attribute is optional.
uiCulture
Specifies the culture for locale-specific resource searches. The value can be
any valid culture string. This attribute is optional.
Child Elements
None
Example
This example shows how the default <globalization> settings are configured in
web.config:
<configuration>
<system.web>
<globalization
requestEncoding="utf-8"
responseEncoding="utf-8" />
</system.web>
</configuration>
Notes
A list of valid culture strings can be found in the .NET Framework docu-
mentation for the
System.Globalization.CultureInfo class.
<httpHandlers>
<httpHandlers>
<add verb=httpVerbs
path=pathInfo
type=typeInfo
validate=boolean />
<remove ...