Applications Systems
Multi-byte characters are saved incorrectly in DPA
If the character set is multi-byte for a monitored instance, but the DPA repository is a single-byte character set, you may see odd behavior or errors.
First published date
Last published date
Overview
Product section
Cause
By default, DPA does not support special characters using a specific character set such as multi-byte, double-byte, and so on. Generally this happens when the DPA repository is set to a single-byte character set, but the monitored instance is set to a multi-byte character set. Java can handle this correctly, but when trying to insert the multi-byte character set into the repository, it will usually fail.
In order to support a multi-byte language, the DPA server, repository, and monitored instances must be configured with the same character set.
Use the following steps to change that default behavior to support single-, double-, or triple-byte. DPA does not support four-byte character sets.
Resolution
These steps include recreating the repository database. You will lose your historical data.
- In the operating system settings on the DPA server, change the Language and Region settings to the language with the same character set.
- Make sure that your system supports the appropriate fonts.
- In your DPA database repository, change the default language to match the operating system language.
- Stop the DPA service.
- Windows: Stop the Ignite PI Server service.
- UNIX or Linux: Run
installDir\shutdown.sh.
- Go to the following directory on the DPA server:
installDir\iwc\tomcat\ignite_config\idc - Open the
system.propertiesfile, and edit the following property by deleting the number sign (#) and setting totrue:com.confio.doublebyte=true - Open the
repo.propertiesfile, and edit the following property by setting tono:repo.created=no - Save and close both files.
- Start the DPA service.
- Windows: Start the Ignite PI Server service.
- UNIX or Linux: Run
installDir\startup.sh.
- Access DPA in a browser, and create the database repository again.