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:

  1. Notes the language or nationality selected
  2. Determines the corresponding code page
  3. Determines the MIME version (as opposed to the Progress version) of the code-page name
  4. 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.

  5. Converts the MIME version of code-page name to the Progress version
  6. Sets a cookie called “wscharset” to the MIME version of the code-page name
  7. 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:

  1. Searches for the code-page name in the following places:
    1. In a query field called “wscharset” or a hidden form-field called “wscharset”
    2. In a cookie called “wscharset” (if Step a was unsuccessful)
  2. 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:

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:

  1. Just after an incoming Web request is received, the Agent converts it from the HTML-CHARSET code page to the Agent’s CPINTERNAL code page
  2. Just before an outgoing Web page is emitted, the Agent converts it from the Agent’s CPINTERNAL code page to the HTML-CHARSET code page

Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095