Tech Note 77: How to resolve Language Switching Dictionary XML Import errors
The release of Wonderware InTouch 9.5 Service Pack 1 added a comprehensive Runtime Language Switching feature. This Runtime Language Switching feature gives developers the ability to create applications where the displayed language can be changed at runtime based upon the requirements of the user.
In addition, Wonderware released the Language Switching Translation tool: a Microsoft Excel file that can be used to export or import an application’s text fields to and from an XML file for easier translation.
Developers may not have access to Microsoft Excel during application development or may use a text editor to add the text translations to the XML file.
It is important to note that some text editors, by default, will change the character encoding format in which the XML file is encoded. UNICODE (UTF-2, -8, -16, etc.) will preserve language-specific characters. ANSI (Windows-1252) encoding will not preserve special character sets.
An XML file saved with the UNICODE encoding format other than UTF-8 will fail to import using the Language Switching Translation import option. To resolve this problem, the XML file should be saved in the UTF-8 encoding format.
This tech note provides steps for changing the XML encoding format to UTF-8.