When LightWave Client copies "string" fields between the JSON message elements and the application IPM it assumes that the data is stored in the IPM using the default encoding which is ISO-8859-1 encoding. The encoding used can be altered on the element, the API, or set at CLIENT process startup.
- To set the encoding for an individual element, set the encoding attribute on the element.
- To set the default encoding on all string elements used by an API method, set the encoding on the method in the API editor.
- To set the default encoding for all services on a specific CLIENT instance set the --default-encoding startup option to the desired encoding.
For example, a request or response containing the following schema structure:
Would be serialized or deserialized using the SHIFT_JIS encoding, producing the following JSON and IPM data:
The value of the encoding attribute or the --default-encoding startup option can be any one of the Character Encoding Names values. Note that LightWave Client always uses UTF-8 encoding for the message payload. Refer to Character Encoding Names for a complete list of the available character encoding names.