jConnect uses the version setting from SybDriver.setVersion( ) to determine the default character-set converter class to use. For VERSION_2, the default is TruncationConverter. For 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 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.jdbc2.utils.TruncationConverter")
Copyright © 2003. Sybase Inc. All rights reserved. |
![]() |