Configuring encodings
Use the following steps to configure your encoding set.
About this task
To configure your encoding set:
Procedure
- Stop Sterling B2B Integrator and wait for shutdown to complete.
-
Navigate to the following directory:
- For Windows: \<install_dir>\bin
- For Unix/Linux: /<install_dir>/bin
Note: If you are using Windows, you must run the Command Prompt as an administrator. - Open the encodings_large.properties file.
- Select the encodings you want to add to the encodings.properties file.
- Open the encodings.properties.in file.
- At the end of the encodings.properties.in file, add the encodings you selected from the encodings_large.properties file. Copy the encodings as they appear in the encodings_large.properties file.
- Ensure that the index numbers are consecutive. If the index numbers are not consecutive, change the index number or numbers as needed. For example, encoding54 cannot follow encoding6. In this example, change encoding54 to encoding7.
-
The first name in the definition (before the comma) is the name that will appear in the Sterling B2B Integrator user interface. You can
change this name to make it more descriptive. For example: encoding4 = 819,ISO8859_1 may be changed
to encoding4 = WesternEurope,ISO8859_1.
Note: ISO8859_1 is the Java canonical name and should not be changed.
-
Update the first line in the encodings.properties.in file (numberof).
Change numberof to the number of encodings added to the file. For example, if the
current value is numberof = 6 and you add 5 new encodings, the new value is numberof = 11.
numberof indicates the total number of encodings located in the file. You must update numberof to ensure that the encodings you added will be visible in the user interface.
-
Navigate to the following directory:
- For Windows: \<install_dir>\bin
- For Unix/Linux: /<install_dir>/bin
Note: If you are using Windows, you must run the Command Prompt as an administrator. -
Enter the following command: setupfiles.cmd.
- For Windows:
setupfiles.cmd
- For Unix/Linux:
./setupfiles.sh
- For Windows:
- Start Sterling B2B Integrator.