Skip to Content.
Sympa Menu

freetds - RE: [freetds] codepage problem

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Spyros Ioakim" <sioakim AT ace-hellas.gr>
  • To: <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] codepage problem
  • Date: Tue, 7 Jan 2003 22:00:04 +0200

I did set the client charset in the /etc/freetds.conf but nothing
happened.
I'm using the rpm.
Do you know if the rpm is compiled with the HAVE_ICONV?

How can I debug it and provide you guys with more info.
I'm using freetds via php in apache and standalone php.

Thanks in advance,
Spyros

-----Original Message-----
From: freetds-admin AT lists.ibiblio.org
[mailto:freetds-admin AT lists.ibiblio.org] On Behalf Of Lowden, James K
Sent: Tuesday, January 07, 2003 6:19 PM
To: 'freetds AT lists.ibiblio.org'
Subject: RE: [freetds] codepage problem


From: Ioakim Spyros [mailto:sioakim AT ace-hellas.gr]
Sent: January 7, 2003 9:21 AM

> From a linux box i try to do a insert into a MSSQL Server 2000 table.
> The problem is that when i do the insert, the text in the database is
> being stored with the wrong codepage and i actually get junk.

Spyros,

Make you have have:

1. configure --with-libiconv-prefix=DIR set correctly.

You can check that libiconv was found and used by the configure script
by examining config.h:

$ grep -i iconv build/include/config.h
/* Define if you have the iconv() function. */
/* #undef HAVE_ICONV */

2. "client charset" defined in freetds.conf for your dataserver.

The value for "client charset" will be passed to libiconv. I would
expect to see:

client charset = ISO-8859-7

in your case.

Contrary to our documentation, FreeTDS does not ask the OS for locale
information.

HTH.

--jkl



The information contained in this transmission may contain privileged
and confidential information and is intended only for the use of the
person(s) named above. If you are not the intended recipient, or an
employee or agent responsible for delivering this message to the
intended recipient, any review, dissemination, distribution or
duplication of this communication is strictly prohibited. If you are not
the intended recipient, please contact the sender immediately by reply
e-mail and destroy all copies of the original message. Please note that
we do not accept account orders and/or instructions by e-mail, and
therefore will not be responsible for carrying out such orders and/or
instructions.


_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds





Archive powered by MHonArc 2.6.24.

Top of Page