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
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.