This section summarizes how you would set the character encoding and request locale, described in the previous sections, for different types of Web site configuration.
The server runs in the same locale as the content being served. See One Locale for Server and Content.
The server runs in one locale, and content is served in a different language. See Server Locale and One Different Content Locale.
The server runs in one locale, and content is served in several different locales. See Server Locale and Multiple Content Locales.
One Locale for Server and Content
If you have designed a site in which the server locale and the Web content locale are the same, the following Dynamo configuration steps are necessary:
If necessary, set the server locale by changing the JVM locale. See Setting the Java Virtual Machine Locale for more information.
Configure the character encoding for site content. See Using the EncodingTyper to Set the Character Encoding or Setting the Character Encoding in JavaServer Pages.
Set the
generateRequestLocales
property tofalse
in the/atg/dynamo/servlet/pipeline/DynamoHandler
component.If necessary, configure the JDBC driver and database for the appropriate encoding. Generally, the encoding of the database should be the same as the encoding of the site content, including JHTML or JSP files and repository content. See the Configuring the Database Encoding section in this chapter for more information.
Server Locale and One Different Content Locale
If you have designed a site with two different locales; one server locale and a different Web content locale, the following Dynamo configuration steps are necessary:
If necessary, set the server locale by changing the JVM locale. See Setting the Java Virtual Machine Locale for more information.
Configure the character encoding for site content. See Using the EncodingTyper to Set the Character Encoding or Setting the Character Encoding in JavaServer Pages.
Set the
generateRequestLocales
property totrue
in/atg/dynamo/servlet/pipeline/DynamoHandler
component.In the
/atg/dynamo/servlet/RequestLocale
component, set theoverrideRequestLocale
property to the request locale.For more information, see Configuring the Request Locale.
If necessary, configure the JDBC driver and database for the appropriate encoding Generally, the encoding of the database should be the same as the encoding of the site content, including JHTML or JSP files and repository content. See the Configuring the Database Encoding section in this chapter for more information.
Server Locale and Multiple Content Locales
If you have designed a site with a server locale and multiple visitor locales, the following configuration steps are necessary:
Separate the content pages into language-specific directories.
See the Locale-specific Content Pages section in this chapter for more information.
Decide which repository design best fits the needs of your site. Edit targeting rules and repository meta-tags as necessary.
For more information, see the Internationalizing Content Repositories section in this chapter.
If necessary, set the server locale by changing the JVM locale. See Setting the Java Virtual Machine Locale for more information.
Configure the character encoding for site content. See Using the EncodingTyper to Set the Character Encoding or Setting the Character Encoding in JavaServer Pages.
Set the
generateRequestLocales
property totrue
in the/atg/dynamo/servlet/pipeline/DynamoHandler
component.Set the
validLocaleNames
anddefaultRequestLocaleName
properties in the/atg/dynamo/servlet/RequestLocale
component.For more information, see Configuring the Request Locale.
Design the entry point to your site so that it matches the user’s request locale to the appropriate content directory. For more information, see the Designing a Multi-Locale Entry Page section in this chapter.
If necessary, configure the JDBC driver and database for the appropriate encoding. In this situation, you are likely to want to configure your database to use Unicode. See the Configuring the Database Encoding section in this chapter for more information.
Add an attribute for the user’s locale to the profile template.