WebSpeed
Installation and
Configuration Guide
How Dynamic Code-page Support Works
In dynamic code-page support, each Web request emitted by the browser indicates, directly or indirectly, the name of the code page it is encoded in. The developer modifies the application to make this happen. Typically, the initial Web page of the application displays a preselected list of languages or nationalities, from which the user selects one.
When a Web request reflecting a response to a language-selection page is received by the Agent, the application:
- Notes the language or nationality selected
- Determines the corresponding code page
NOTE: For information on the MIME version and the Progress version of code-page names, see the chapter in the WebSpeed Product Update Bulletin on tasks for the developer implementing dynamic code-page support.- Determines the MIME version (as opposed to the Progress version) of the code-page name
- Converts the MIME version of code-page name to the Progress version
- Sets a cookie called “wscharset” to the MIME version of the code-page name
OR
Sets a query field or a hidden form-field called “wscharset” to the MIME version of the code-page name
When a Web request reflecting a response to a Web page other than a language-selection page is received by the Agent, WebSpeed’s
web-disp.p
procedure:
- Searches for the code-page name in the following places:
- In a query field called “wscharset” or a hidden form-field called “wscharset”
- In a cookie called “wscharset” (if Step a was unsuccessful)
- Converts the code-page name from MIME format to Progress format and stores the result in the WEB-CONTEXT handle’s HTML-CHARSET attribute (if the search in the previous step was successful.
Then, the application ensures that the MIME version of the code-page name will appear in the Web page the application will create. The technique used depends on whether the Web page is created using static HTML or dynamic HTML, as described in the following bullets:
- If the Web page is created using static HTML, the application should contain a META tag with the MIME version of the code-page name, as in the following example:
- If the Web page is created using dynamic HTML, the application uses the OUTPUT-CONTENT-TYPE() WebSpeed API function to insert the MIME version of the code-page name into the HTML document.
For more information on this technique, see the chapter on dynamic code-page support developer tasks in the WebSpeed Product Update Bulletin .
Once WebSpeed’s
web-disp.p
procedure stores the Progress version of the code-page name in HTML-CHARSET, the Agent uses HTML-CHARSET to perform the following code-page conversions:
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |