Skip to main content
Summary Can the same Orbix server negotiate different codesets with different clients?
Article Number 15415
Environment All Supported Operating Systems Orbix 6.3.4
Question/Problem Description Can the same Orbix server negotiate different codesets with different clients?
Can a server accepts clients with different codesets?
Can an Orbix server serve multiple codesets?
Clarifying Information
Error Message
Defect/Enhancement Number
Cause
Resolution

A server will always be configured to have only one native code set but it can support multiple conversion code sets. This allows the server to handle clients with different code sets. The Orbix 6 Internationalization Guide explains all configuration that is related to negotiating code sets at runtime in Orbix applications.

Have a look at example 6 in the Orbix Internationalization guide:

plugins:codeset:char:ncs = "0x05010001"; # UTF-8
plugins:codeset:char:ccs = ["0x00030010", "0x05000011", "0x00010001"]; # JIS eucJP,
OSF SJIS, ISO-8859-1
plugins:codeset:wchar:ncs = "0x00010109"; # UTF-16
plugins:codeset:wchar:ccs = ["0x00030010", "0x05000011", "0x00010104", "0x00010100"]; # JIS eucJP, OSF SJIS, UCS-4 Level 1, UCS-2 Level 1

The conversion code sets for both narrow and wide strings include more than one code set id, allowing to service clients that use different code sets. The configuration of the native code set can only take one code set id, which needs to match the locale of the operating system.

Workaround
Notes

As a general rule the following code sets are compatible codesets:
- All latin-x codesets are compatible with each other
- All UCS codesets are compatible
Anything else is incompatible and must be configured explicitly!

Attachment
Created date: 06 September 2011
Last Modified: 13 February 2013
Last Published: 23 June 2012
First Published date: 10 September 2011

#Orbix
#KnowledgeDocs