freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "Lowden, James K" <LowdenJK AT bernstein.com>
- To: "'TDS Development Group'" <freetds AT lists.ibiblio.org>
- Subject: [freetds] UTF-8 update
- Date: Mon, 7 Apr 2003 18:05:04 -0400
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.
-
[freetds] UTF-8 update,
Lowden, James K, 04/07/2003
- Re: [freetds] UTF-8 update, James K. Lowden, 04/08/2003
Archive powered by MHonArc 2.6.24.