[freetds] Charset conversion Polish

ZIGLIO, Frediano, VF-IT Frediano.Ziglio at vodafone.com
Fri May 6 11:23:05 EDT 2005


> 
> 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


More information about the FreeTDS mailing list