Skip navigation.

WebLogic Portal 8.1 SP6: Use with Multibyte Environments

Points of Caution for WebLogic Portal 8.1 SP6
Restrictions
Known Problems
Corrected Problems


Points of Caution for WebLogic Portal 8.1 SP6

Making Popup Text for Portlet Icons and Messages Japanese

There is popup text for portlet icons in the netuix-config.xml file, and Japanese text can be added as follows (bold portion).

   <!-- Container supported widow states -->
   <window-state name="minimized">
        <activate-image>titlebar-button-minimize.gif</activate-image>
        <deactivate-image>titlebar-button-unminimize.gif</deactivate-image>
        <alt-text>
            <locale language="ja">
                <activate>Minimize (in Japanese)</activate>
                <deactivate>Restore (in Japanese)</deactivate>
            </locale>
            <locale language="en">
                <activate>Minimize</activate>
                <deactivate>Restore</deactivate>
            </locale>
        </alt-text>
    </window-state>

The netuix-config.xml file is created in the folder directly below WEB-INF after the creation of Portal Web project with workshop. %WL_HOME%\workshop\templates\portal-project.zip is in portal.war as a partial template.

The example above is for Japanese. For Korean and Chinese, switch "ja" to "ko" or "zh" respectively

Method for Creating Shift_JIS-Based Portal Applications

Here the example for Japanese is covered:

For portal applications created with JSP or PageFlow in Shift_JIS base, add the stand-alone JSP or PageFlow settings, then take care of the settings for the portal itself.

First of all, it is necessary to carry out the following settings when creating JSP or PageFlow with Shift_JIS settings.

  1. JSP ContentType Change or Addition
    <%@ page language="java" contentType="text/html;charset=Shift_JIS"%>
  2. weblogic.xml jsp-param Change or Addition
      <jsp-param>
    <param-name>encoding</param-name>
    <param-value>Shift_JIS</param-value>
    </jsp-param>
  3. Web Application Character Encoding Change

    Open the web application's character encoding settings screen from the Workshop menu (Click Tools -> Application Properties -> Encoding Order). Deselect "Use Default (UTF-8)", and set "Shift_JIS" in the encoding input field.

    Note: The settings from 3-a are necessary in the case of PortalProject.

    3-a. Add the weblogic.xml charset-params.

    <charset-params>
    <input-charset>
    <resource-path>/*</resource-path>
    <java-charset-name>Shift_JIS</java-charset-name>
    </input-charset>
    </charset-params>

    Delete the descriptors below the web.xml file.

    <context-param>
    <param-name>weblogic.httpd.inputCharset./*</param-name>
    <param-value>UTF-8</param-value>
    </context-param>

  4. Change the Portal File

    There are ContentType settings in the .portal file, and the standard is UTF-8.
    In the case of Shift_JIS, it is necessary to make the following changes.

    <portal:directive.page contentType="text/html;charset=Shift_JIS"/>

    Change Method

    1. Select [Tools -> Application Properties] from the Workshop menu.
    2. Select Protocol from the dialog, and check "Open as XML"
    3. Right click the created .portal file and select "Open as XML"
    4. It becomes possible to edit the portal file's source.
  5. Stream Display

    When using the WebLogic Administration Portal to create a desktop based on the portal created in Shift_JIS base, it is necessary to update the portal database table.

    Update Object Table:L10N_LOCALE

    Update Object Column: ENCODING (UTF-8 is standard)



    Change Method

    Execute in the order shown below.

    1. Deploy the portal application.
    2. Start up the WebLogic Administration Portal and login.
    3. For the L10N_LOCALE table in the database, change UTF-8 to Shift_JIS in the ENCODING column of the LANGUAGE column that is a row which is ja.
    4. Create a desktop using WebLogic Administration Portal.
      Hereafter, all desktops created will be Shift_JIS-base.


    Supplement 1. Table Update Timing

    It is necessary to change the ENCODING column in the L10N_LOCALE table for the following two rows: the row where LANGUAGE is ja and COUNTRY is JP, and the row where LANGUAGE is ja. The row where LANGUAGE is ja and COUNTRY is JP is automatically created when the portal application is deployed, but the row where LANGUAGE is ja is not registered at the time of deployment due to the content of the portal application created. In such cases, it is created automatically at the time of login to the WebLogic Administration Portal. Therefore, it is a more reliable method to change the table after logging into the WebLogic Administration Portal.


    ExampleEšColumn Update for Oracle9i

    SQL> UPDATE L10N_LOCALE SET ENCODING='Shift_JIS' WHERE LANGUAGE='ja'; 2 columns updated.

    SQL> commit;



Warning for .layout File Creation

When creating a .layout file, be sure to set the language setting of the <netuix:locale> component within the layout file to "ja". Failure to do so may result in pages utilizing border layout to be incorrectly displayed during stream display.

Method for Adding Japanese Registration Information for Layout, Shell, and Look & Feel in the Portal Application

The following messages are displayed for portal management.



The title for the locale [ja] is not set.



This is because the Japanese information for the layout, shell, and look & feel portal skeleton is not registered. The default only has registration information for "en", and it is necessary to go through the following steps in order to properly display other locales.

For Korean, simplified Chinese and traditional Chinese,"[ko]","[zh_CN]", "[zh_TW]" are displayed respectively.



Setting from PortalAdminEE/b>

  1. Start up portalAdmin
    (Make the browser language 'en')
  2. Select PortalResources-Layout
  3. Select 'Add Locale' for each item which has a tree displayed.
    (Set the language you wish to add (ex. 'ja'), and describe the title.)
  4. Return the browser to the original language and re-display.

Through these steps, the registration information for the layout, shell, and look & feel are stored in the database (Table name: L10N_RESOURCE). (For Korean, simplified Chinese and traditional Chinese,"ja" is "ko","zh_CN","zh_TW", etc.)
)



Settings from Workshop:

The skeleton files for these (for example, fourcolumn.layout, text.laf, etc.) are in the framework\markup\ folder of the Portal Web project created in workshop. The message above is not displayed if the locale values in these files are set to "ja" beforehand. %WL_HOME%\workshop\templates\portal-project.zip is in portal.war as a partial template. (For Korean, simplified Chinese and traditional Chinese,"ja" is "ko","zh", etc.))

Making the Search Function Support Japanese

In order to handle Japanese in the search function, it is necessary to download the Asian Locale Package from the following links, and apply it to the product.

Note: Japanese is not supported for RedHat Linux.


Windows:

Solaris:



In order to apply the Asian Locale Package, extract the corresponding files in the following directories.



After applying the Asian Locale Package, refer to



%WEBLOGIC_HOME%\portal\thirdparty\search\common\docs\dre\dre4_axe_4.3.pdf



and perform the necessary settings for the language of use (Japanese, Korean, Chinese, etc). The following is an example of the settings necessary for Japanese support.

In PortalSearchDRE.cfg:

For Windows:

[JapaneseSJIS]
LanguageCode=31
SentenceBreaking=..\langfiles\japanesebreaking.dll
Language=JAPANESE
Encoding=SHIFTJIS
[LanguageTypes]
DefaultLanguageType=japaneseSJIS

Notes on Using SQL Server

When a database is created using the sample script WL_HOME\portal\db\sql_server\2000\admin\create_database.sql file which is provided for database creation, an unexpected behavior may occur in a portal application.

When creating a database using the script, you need to modify the contents of the script file appropriately.

Some examples for such modification are shown below.

   Example of modification

 Before

 line 26:COLLATE SQL_Latin1_General_CP1_CS_AS

 line 33:exec sp_addlogin 'WEBLOGIC', 'WEBLOGIC', 'WEBLOGIC', 'us_english'



 After

 line 26:COLLATE Japanese_CS_AS_KS_WS

 line 33:line:exec sp_addlogin 'WEBLOGIC', 'WEBLOGIC', 'WEBLOGIC', 'japanese'

 


Restrictions

  1. Internet Explorer must be used when using Administration Portal. (Refer to "Supported Web Browsers" from the "Supported Platforms" page regarding versions. There are cases in which Japanese is partially handled improperly with Netscape Navigator.
  2. Do not use multibyte characters in the following names. There are cases in which errors will occur.
    • Application Names (Workshop)
    • Portal Web Project Names (Workshop)
    • All files that can be newly created for Portal Web projects (Workshop)
    • Content-management-type property files (Administration Portal)
    • All I/O fields usable with service management (Administration Portal)
  3. Use the same character encoding on the producer side and consumer side when using remote portlet. Errors can occur when they are not the same.
  4. The following additions to WebLogic Portal 8.1 SP4 are not directly usable with multibyte characters. Unicode escape, using such methods as native2ascii commands, is required to use mutlibyte characters.
    • Interaction Management Contents Search Editor
    • Workshop Contents Search Details Tab
  5. In the setup file for XIP Tool (xip.properties), a parameter named xip.output.encoding to specify the encoding for file input/output is provided. For this parameter, UTF-8 is set as the default, and setting any other values than UTF-8 will result in an incorrect XML file output when exported. Therefore xip.output.encoding parameter should be used with the default value.




Known Problems




Corrected Problems