Skip to Content.
Sympa Menu

freetds - RE: [freetds] Data conversion limit for strings

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] Data conversion limit for strings
  • Date: Mon, 26 Jan 2004 10:30:16 +0100

...
> 19:20:23.342530 in dbsqlexec()
> 19:20:23.342545 in dbsqlsend()
> 19:20:23.342561 tds_put_string converting 128 bytes of "USE
> xxxx_xxx; INSERT INTO test (test) VALUES
> (N'ãLF-X1ãã¯ã12.1Våã®æ²æã¢ãã¿ã¼ã¨æä½é¨ï¼ãã¼ã¹ã¹>
> ãã¼ã·ã§ã³ï¼ã§æ§æãããåæ¹ã®éä¿¡ã"ã¯ã5GHz帯ã¯ã¤ã¤ãã¹è¦æ
> ¼ã®ç¡ç·æè¡ï¼IEEE802.11aï¼ã¨ã2.4GHz帯ã®ã¯ã¤ã¤ãã¹è¦æ
> ¼ã®ç¡ç·æè¡ï¼IEEE802.11b / ^M
> ')"

This seem very strange... data seems not utf8... perhaps you cat log and
copy/paste from shell/file? I noted your mail system is exchange. Can you
post a lof of a select of already inserted data?

> 19:20:23.342580 tds_put_string wrote 0 bytes
> Sending packet @ 19:20:23.342597
> 0000 01 01 00 08 00 00 01 00- |........|
>

This seem a bug in libTDS... tds_put_string do not output any bytes...
perhaps data is not utf-8... perhaps libTDS should just return failure. If I
remember data came from a web page... have you forced html charset to utf-8??

freddy77




Archive powered by MHonArc 2.6.24.

Top of Page