Selecting a character-set converter

jConnect uses the JCONNECT_VERSION to determine the default character-set converter class to use. For JCONNECT_VERSION = 2 or higher, the default is PureConverter the default is TruncationConverter. For JCONNECT_VERSION = 4 or higher, the default is PureConverter.

You can also set the CHARSET_CONVERTER_CLASS connection property to specify which character-set converter you want jConnect to use. This is useful if you want to use a character-set converter other than the default for your jConnect version.

For example, if you set JCONNECT_VERSION = 4 or later but want to use the TruncationConverter class rather than the multibyte PureConverter class, you can set CHARSET_CONVERTER_CLASS:

...
 props.put("CHARSET_CONVERTER_CLASS", 
   "com.sybase.jdbc4.utils.TruncationConverter")