Skip to Content.
Sympa Menu

freetds - RE: [freetds] UTF-8 conversion

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddyz77 AT tin.it>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] UTF-8 conversion
  • Date: Fri, 22 Apr 2005 20:24:09 +0200

Il giorno ven, 22-04-2005 alle 13:16 -0400, Lowden, James K ha scritto:
> > From: Eddie Gieze
> > Sent: Friday, April 22, 2005 10:26 AM
>
> Hi Eddie,
>
> I was able to reproduce your libiconv tests. I think we can rule out
> your iconv library. However, the TDSDUMP you provided doesn't (afaict)
> square with the inputs you say you're expecting.
>
> > Data i should be getting:
> >
> > 74 C4 93 C5 A0 74 00 OS X character palette - utf-8
> > 0074 0113 0160 0074 OS X character palette -
> unicode
> >
> > Data i'm getting:
> >
> > 74 C3 84 E2 80 9C C3 85 C2 A0 74 00 XCode - SQLGetData
> > 74 C3 84 E2 80 9C C3 85 C2 A0 74 00 XCode - SQLBindCol
>
> Here's the data packet:
>
> 0040 d1 07 00-6f 6e 65 63 68 61 72 10 |.n.t.... onechar.|
> 0050 fd ff 7d dd 00 00 00 00-cc 0a 00 00 01 00 0c 00 |..}..... ........|
> 0060 64 75 6d 6d 79 54 53 00-0c 00 00 00 74 00 c4 00 |dummyTS. ....t...|
> 0070 1c 20 c5 00 a0 00 74 00
>
> I'm having some trouble parsing it. There seem to be two rows, but I
> find only one ROW token:
>

This is a row

d1 row

07 00 length of next varchar
"onechar" data

10 length of textptr
fd ff 7d dd 00 00 00 00 cc 0a 00 00 01 00 0c 00 textptr
"dummyTS\0" timestamp
0c 00 00 00 text length (12 bytes)
74 00 c4 00 1c 20 c5 00 a0 00 74 00 data (ucs2le)

freddy77






Archive powered by MHonArc 2.6.24.

Top of Page