[freetds] UTF-8 update

Lowden, James K LowdenJK at bernstein.com
Mon Apr 7 18:05:04 EDT 2003


Reading character data [tds_get_string()] relies on the assumption that
TDS7+ data are UCS-2, and forced the caller to discriminate on is_unicode.  

I'm adding tds_get_char_data(), which takes a const TDSICONVINFO*, allowing
conversion to be more intelligent (including per-column).  If the pointer is
NULL, no conversion is done.  

I'm leaving tds_get_string() in place for now, because it's handy,
especially for situations where its assumptions are correct, e.g. metadata
from Microsoft servers.  Eventually, we'll have to strip it out, because it
wouldn't understand any other pairing, notably UTF-8 on either side.  

Nothing more commited atm.  Stay tuned.  

--jkl




The information contained in this transmission may contain privileged and
confidential information and is intended only for the use of the person(s)
named above.  If you are not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, any
review, dissemination, distribution or duplication of this communication is
strictly prohibited. If you are not the intended recipient, please contact
the sender immediately by reply e-mail and destroy all copies of the
original message. Please note that we do not accept account orders and/or
instructions by e-mail, and therefore will not be responsible for carrying
out such orders and/or instructions.




More information about the FreeTDS mailing list