Skip to Content.
Sympa Menu

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

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Geoffrey KRETZ <gk AT 4js.com>
  • To: freetds AT lists.ibiblio.org
  • Subject: [freetds] Connection probleme from HP-UX with BIG-5 Charset
  • Date: Fri, 13 Feb 2009 16:32:54 +0100

Hi,

I'm new to this mailing list and i'm trying to use FreeTDS (0.83) on a
HP-UX machine :
-bash-3.00$ uname -a
HP-UX lima B.11.11 U 9000/800 2286771896

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
Msg 20002, Level 9, State -1, Server OpenClient, Line -1
Adaptive Server connection failed
There was a problem connecting to 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.

I've tried different syntax for big5 (BIG5, BIG-5, ...) without success.

And iconv is working :
iconv -f big5 -t UTF-8 file : convert with success the file

Have I done something wrong ?

Best regards and TIA,

Geoffrey




Archive powered by MHonArc 2.6.24.

Top of Page