![]() |
|
| News | FAQs | Contacts | |
| WebMap Composer Product Home |
|
Home Support FAQs
How do I change the UTF-encoding of XML returned from an ArcIMS WMS feature query?This is important in some applications using WebMap Composer extensions. When Arc XML (AXL) specific functionality is used we still need it to conform to basic XML standards, and sometimes this requires a little help. SUMMARY Generally, a locale consists of three parts: language, territory, and codeset. Language specifies the native language (English). Territory specifies a geographic entity (United States). Codeset specifies the coded character set for the locale (ISO-8859-1). While Java uses Unicode as its internal character set, operating systems still use a region specific codepage (specified by locale) to represent text. The Java Virtual Machine assumes the default system locale is used when executing or utilizing a Java application; thus, when the ArcIMS Application Server (Java application) facilitates communication between clients and spatial servers, it uses the default locale used by the Java Virtual Machine to render and recognize textual information, namely ArcXML. PROCEDURE [Mon Dec 24 00:39:43 PST 2001] main> Java Virtual Machine's character encoding: Cp1252 This information will indicate the default locale settings used by ArcIMS. In this example, the language is English, the territory is the United States, and the codeset is Cp1252. In order to change and configure the default system locale for ArcIMS, do the following: Windows: 1. Click Start > Settings > Control Panel. Double-click Regional Settings (or Regional Options). 2. Select the appropriate language (locale) from the drop-down list. Each language specifies a territory, and each language-territory combination has a preset codeset using a Windows specific definition, which cannot be changed. The precise locale can be retrieved as the LCID (Locale ID) using ASP or Java applications. See Related MSDN link for additional information. 3. Click the Set Default button and reboot the computer. 4. Restart the ArcIMS services. UNIX: 1. Use the 'locale -a' command to list all the locales installed on the system. For example: %>locale -a The variables returned describe the following: ¤ LANG: specifies the locale to use for all purposes except as overridden by the variables below. 2. Install additional locales using the upgrade option and specific directions for each respective system. See related Sun and IBM links. 3. Log on as root and change/add the appropriate variables in the /etc/default/init file (Solaris) or /etc/environment file (AIX). See variables listed above. Be sure to set the variables for a locale available on the system. a. On AIX only, change the default font for the locale. b. Use the command 'lsfont' to list the available fonts c. Use the command 'chfont' to select the appropriate font. See the command man-pages for additional information. 4. Reboot the computer. Solaris Only: 5. Log on using the ArcIMS administrator account. 6. Set the font path for the appropriate locale: xset fp+ /usr/openwin/lib/locale/ 7. If using a multibyte locale, such as Japanese, set up the htt server using the following command: /usr/openwin/bin/htt -lc_basiclocale All UNIX platforms: 8. Restart the ArcIMS daemons. For further information: Microsoft: How To Add and Enable Additional Languages
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
| WMC Home | Product Docs | Presentations | Showcase | Release Docs | Download | FAQs |
|
|
|
© Social Change Online Pty Ltd, Australia |