Skip to Content.
Sympa Menu

freetds - RE: [freetds] Charset conversion Polish

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] Charset conversion Polish
  • Date: Fri, 6 May 2005 17:23:05 +0200

>
> In my system is not available the iconv library, so I modified the
> built-in iconv substitute in FreeTDS to accept different charset (
> CP1250, CP1254, CP1256, CP1251 ).
> Now when I read data from the SQL Server I receive data correctly.
> When I write on the server, I write the correct Unicode buffer ( I
> checked on freetds.log), but the server convert my character
> before save
> on DB, so after if I'll read the same buffer it will be different (
> checked on freetds.log).
>
> So if I write a polish char to SQL Server installed in US WinXp it
> doesn't work.
> If I write a polish char to SQL Server installed in Polish WinXp it
> works.
>
> It seems like if I need to specify to the Server the charset that I
> using on client.
>
> Why?
>
> Thanks
> Flaviano
>

Accept different charset means that you coded conversion for all your
required charset? Then it should work. Have you tried to compile and use
libiconv? Do you post data using normal sql statement or prepared one?
Does the server reply correctly? Do char column have proper charset?

freddy77




Archive powered by MHonArc 2.6.24.

Top of Page