Skip to Content.
Sympa Menu

freetds - Re: [freetds] Disabling character translation

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddy77 AT gmail.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Disabling character translation
  • Date: Tue, 8 Nov 2016 17:19:07 +0000

2016-11-08 6:50 GMT+00:00 Peter Deacon <peterd AT iea-software.com>:
> Have data being shoveled into fields which do not represent native type
> reported by database and need to completely disable character translation.
>
> Looking for parity with SQL Server driver option "perform translation for
> character data" (ODBC.INI AutoTranslate=No)
>
> Anyone know of a trick to make it work? Tried setting Charset in local
> environment using replacement iconv but every conversion in the list either
> crashed or didn't help.
>
> If not 'll send a patch to support it :)
>
> regards,
> Peter


Go on!
Just some details. libTDS can convert to multibyte (like utf-8)
directly. This is disabled by ODBC so using ODBC
libTDS just store data from network. Also usually conversion function
just copy data if char_conv is NULL.
There should be some conversion function in src/odbc directory to deal
with data conversion (I think metadata
like column names are all converted in all cases... I hope you don't
need these unconverted).

Frediano




Archive powered by MHonArc 2.6.24.

Top of Page