[freetds] Connection probleme from HP-UX with BIG-5 Charset

jklowden at schemamania.org jklowden at schemamania.org
Fri Feb 13 11:32:30 EST 2009


On Fri, Feb 13, 2009 at 04:32:54PM +0100, Geoffrey KRETZ wrote:
> I get the following error when trying to connect to a SQL Server
> database with "client charset" set to big in .conf file :
> 
> -bash-3.00$ tsql -S seville -U f4gl -P g3n3ro4j
> locale is "zh_TW.big5 zh_TW.big5 zh_TW.big5 zh_TW.big5 zh_TW.big5
> zh_TW.big5"
> locale charset is "big5"
> Msg 20017, Level 9, State -1, Server OpenClient, Line -1
> Unexpected EOF from the server
> 
> For info, I got the following entries in my freetds.conf file :
> [seville]
>         host = seville
>         port = 1433
>         tds version = 8.0
>         client charset = big5
> 
> And on my terminal, I set LC_ALL to zh_HK.big5.
> 
> If I use UTF-8 instead of big5, I have not problem to connect.
... 
> And iconv is working :
> iconv -f big5 -t UTF-8 file : convert with success the file

Hmm.  You seem to be doing everything right, provided the libiconv
you're using is the same one used by iconv(1).  

The first 12 or so lines of a TDSDUMP log should explain what's happening, 
if not why.  

HTH. 

--jkl




More information about the FreeTDS mailing list