[freetds] What happened to tds_set_charset?

ZIGLIO, Frediano, VF-IT Frediano.Ziglio at vodafone.com
Fri Jan 30 11:48:52 EST 2004


> 
> Does tds_set_charset not exist in the current stable release 
> of freetds
> (0.62.1)?
> 
> Using tdsver 7.0 it doesn't seem to exist in the lib. The 
> documentation still
> lists it as a valid function
> 
> [box]-[root] /usr/local/src/freetds-0.62.1* nm 
> /usr/local/lib/libtds*|grep -i tds_set_charset
> [box]-[root] /usr/local/src/freetds-0.62.1* echo $?
> 1
> 
> Not there.. The only reference to the function in the src 
> code is in the docs,
> doc/tds_layer.txt
> 
> 
> Any idea when this changed, or why?
> 
> Thanks!
> 

I don't remember very well but I think it has been changed to
tds_set_client_charset.
There ware two separate function (one for client and one for server)
however it was better to set server charset using client charset (or a
nearest one). We do not still convert character data from Sybase so it's
better to use the same coding and mssql (7 or newer) use always UCS2
(for metadata) and server encoding (other data).

freddy77



More information about the FreeTDS mailing list