Skip to Content.
Sympa Menu

freetds - Re: [freetds] Status of UTF-8 support in 0.83 dev

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "ZIGLIO, Frediano, VF-IT" <Frediano.Ziglio AT vodafone.com>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Status of UTF-8 support in 0.83 dev
  • Date: Tue, 9 Sep 2008 11:40:03 +0200

>
> Frediano,
>
> I am not sure to get what you mean by:
>
> > I think that column size == count in bytes is required cause:
>
> Do you mean the ColumnSize parameter of SQLBindColumn()
> should be provided as a number of bytes instead of characters?
> I am not sure this is a good idea, as it is used to define
> the SQL type (NVARCHAR(ColumnSize)) ...
> I mean, SQL Native Client expect a number of characters, not bytes.
>

no, no, I mean column_size in TDSCOLUM structure !

> FYI: Not sure this helps:
>
> If you want to known the maximum number of bytes a multi-byte
> character can use in the current locale,
> you have the standard MB_CUR_MAX macro... (man MB_CUR_MAX).
>
> Thanks for your great help.
> Seb
>

freddy77

Attachment: smime.p7s
Description: S/MIME cryptographic signature




Archive powered by MHonArc 2.6.24.

Top of Page