Open Server automatically handles some tasks associated with supporting localized clients. These tasks include:
Performing character set conversion, if required, of both incoming and outgoing data.
Providing Open Server error messages in the client’s language and character set (provided that the SRV_T_USESRVLANG property for the client’s thread structure is set to CS_FALSE).
Providing localization information to the client in response to a client request. See “Automatic response to requests for localization information”.
For some Open Server applications, this automatic support for localized clients is sufficient, as they do not need to take any additional steps to support localized clients. However, other Open Server applications need to provide additional support for localized clients.
After logging into an Open Server application, a client can request:
The name of the server’s character set
The name of the server’s collating sequence (sort order)
The character set definition for the client’s character set
The sort order definition for the client’s collating sequence
Clients make these requests using the sp_serverinfo system registered procedure, using Remote Procedure Call (RPC) commands.
In response, Open Server automatically returns the requested information by means of the sp_serverinfo system registered procedure. An Open Server application does not need to take any action at this point, and, in fact, is not aware that the request ever occurred.