Consultor Eletrônico



Kbase P22080: How to get Chinese characters to display in the Procedure Editor or Progress application
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   4/9/2008
Status: Verified

GOAL:

How to get Chinese characters to display in the Procedure Editor

GOAL:

How to get Chinese characters to display in a Progress application

GOAL:

How to enter Chinese characters in the Procedure Editor

GOAL:

How to enter Chinese characters in a Progress application

FACT(s) (Environment):

Windows NT 32 Intel/Windows 2000

FIX:

You will most likely require your Windows installation CD during these steps. Please note that these steps are mainly based on the Chinese (RPC) language, but depending on your preference and environment you might have to choose another Chinese language.

On Windows NT and Windows 2000:

1. Open Regional Options in Control Panel.
2. On the General tab, under Language settings for the system, select the Simplified Chinese check box.
3. Click on the Set Default button and select Chinese (PRC).
4. Reboot.

Depending on personal preferences, you may need to also change the following under the same Regional Options window:

1. Your locale (location):, and select Chinese (PRC).
2. On the Input Locales tab, add an input locale like Chinese (Simplified) - QuanPin.

On Windows XP:

1. Open Regional and Language Options in Control Panel.
2. On the Languages tab, under Supplemental language support, select the Install files for East Asian languages check box.
3. Click OK or Apply.
4. Reboot.

5. Open Regional and Language Options in Control Panel.
6. On the Languages tab, under Text services and input languages, click the Details button.
7. On the Settings tab, under Installed services, click the Add button.
8. Under Input language, select Chinese (PRC) and also an appropriate Keyboard layout/IME like Chinese (Simplified) - ShuangPin.
9. Click OK.

10. On the Settings tab, under Preferences, click the Language Bar... button.
11. Select each of the first three checkboxes, this displays the Language Bar on the desktop so you can switch languages as required.
13. Click OK or Apply on each window until you exit completely.


Optional Steps:

If garbage characters or ? is displayed when attempting to enter or display Chinese characters in a tool like Notepad, then after the steps above the following extra steps may be required:

1. Open Regional and Language Options in Control Panel.
2. Select the Advanced tab
3. Change the Language for non-Unicode programs to Chinese (PRC).
4. Click OK.
5. Reboot.


Configuring the Progress Environment:
Ensure that either the startup.pf file within the Progress installation directory or the Progress client startup line contains the parameters:
-cpstream utf-8
-cpinternal utf-8

You can replace utf-8 with the codepage of your choice (like GB2312 or BIG-5 for example).

You will also need to ensure that any database that you connect to is also using a compatible code page otherwise you may store corrupt data within the dat.abase. Configuring a database to store Chinese characters is outside the scope of this Solution.

Start a Progress Procedure Editor or application. Once you are in the Procedure Editor or Progress application, select Chinese (PRC) from the Language Bar. You can now type and display Chinese characters.


If screen layout has changed slightly and/or fields no longer fit within frames, the following steps may resolve the problem:

Change either the Progress Windows registry settings (or the progress ini file if you are using one) and append additional font settings to the Windows fonts.

1. If you are using the Windows registry settings, run regedit.
2. Expand the path: My Computer\HKEY_CURRENT_USER\Software\PSC\PROGRESS\9.1E
3. Two folders shown in the list, fonts and Startup, will contain string values that will need to change.
4. Append all sting values within the fonts folder to include ", script=ansi". An example is below.
5. Append ", script=ansi" to the DefaultFixedFont and DefaultFont string values within the Startup folder. An example is below.

If using a Progress ini file, make the exact same changes to the fonts within the [Startup] and [Fonts] sections.
Example of a Progress ini file changes:

In the [Startup] section, change these lines:
DefaultFont=MS Sans Serif, size=8, script=ansi
DefaultFixedFont=Courier New, size=8, script=ansi
In the [Fonts] section, change all fonts to include , script=ansi like we did above.
font0=Courier New, size=8, script=ansi
font1=MS Sans Serif, size=8, script=ansi
font2=Courier New, size=8, script=ansi
font3=Courier New, size=8, script=ansi
font4=MS Sans Serif, size=8, script=ansi
font5=MS Sans Serif, size=10, script=ansi
font6=MS Sans Serif, size=8, bold, script=ansi
font7=MS Sans Serif, size=8, script=ansi
PAN>.