Skip to Content.
Sympa Menu

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

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: jklowden AT schemamania.org
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Connection probleme from HP-UX with BIG-5 Charset
  • Date: Fri, 13 Feb 2009 11:32:30 -0500

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





Archive powered by MHonArc 2.6.24.

Top of Page