Selecting a character-set converter

jConnect uses the version setting from SybDriver.setVersion to determine the default character-set converter class to use. For com.sybase.jdbcx.SybDriver.VERSION_2, the default is TruncationConverter. For com.sybase.jdbcx.SybDriver.VERSION_4 and later, 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 to com.sybase.jdbcx.SybDriver.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.jdbc3.utils.TruncationConverter")