Cisco Cisco Collaboration Server Dynamic Content Adapter
DCA 2.01 Administration and Configuration Guide
How to Use the CharsetDefault Properties File 171
How to Use the CharsetDefault Properties File
Use the CharsetDefaults.properties file to specify your own default Java encoding
method for the DCA parser. This default encoding method will override the platform
default.
method for the DCA parser. This default encoding method will override the platform
default.
About Default Encoding Methods
Most Web pages contain information in a response header or meta tag that indicates
their encoding method. If this information is missing, a platform default encoding
method is used (in the case of the DCA parser, the platform default would be the
server's locale setting).
their encoding method. If this information is missing, a platform default encoding
method is used (in the case of the DCA parser, the platform default would be the
server's locale setting).
To Specify a Default Encoding Method
To specify a default encoding method:
1. In the Admin Tool, select Configuration > CharsetDefault.
2. On a new line, add a page to default Java encoding method mapping, as follows.
You can specify a range of pages -- for example, those whose URL includes a
particular country code. You can also specify different defaults for different
ranges of pages:
particular country code. You can also specify different defaults for different
ranges of pages:
<Perl 5 regular expression representing one or more HTML
documents>
=<Java encoding method>
3. Click Submit.
Note: CharsetDefaults.properties can be modified while the DCA server is
running. Restarting the server after editing the file is not necessary.
running. Restarting the server after editing the file is not necessary.
Example
In the example below, pages returned from www.toyota.co.jp whose encoding
method is unspecified will use JISAutoDetect (Japanese) as their Java encoding
method:
method is unspecified will use JISAutoDetect (Japanese) as their Java encoding
method:
http.?://www.toyota.co.jp.*=JISAutoDetect