Skip to Content.
Sympa Menu

freetds - Re: [freetds] Charset question

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddyz77 AT tin.it>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Charset question
  • Date: Wed, 12 Apr 2006 21:40:22 +0200

Il giorno mer, 12/04/2006 alle 14.07 -0400, Lowden, James K ha scritto:
> > From: jack brack
> > Sent: Wednesday, April 12, 2006 11:24 AM
> >
> > >> For this php code:
> > >> sybase_connect($user, $pass, $serv, "iso_1")
> > >>
> > >> Why does CT try to connect as UTF-8?
> > >>
> > >> It does the same for this one too:
> > >>
> > >> sybase_connect($user, $pass, $serv, "iso-8859-1")
> > >>
> > >> but Sybase doesn't recognise the character set.
> > >
> > > What is it you're trying to do?
> >
> > I'd like to connect to the server using the iso_1 character set
> > initially, without TDS trying a different character set first.
>
> Fair enough. :-)
>
> > I copied my example from the lcoales.conf in cvs, which uses a
> > space:
> >
> "http://cvs.sourceforge.net/viewcvs.py/freetds/freetds/locales.conf?rev=
> 1.5&view=markup
>
> I know. I think it's wrong, based on looking at the code.
>

Well, I think it's wrong since... 3 or 4 years ago. Good spot! At this
point however should we fix this?

It should also documented correctly in
http://www.freetds.org/userguide/locales.htm

About locales.conf, freetds.conf, client charset, etc. I think there is
a lot of confusion... For instance is not true that client charset (only
in freetds.conf) is use only with TDS 7+. If charset is not given
FreeTDS try to match charset for Sybase using client charset.

freddy77






Archive powered by MHonArc 2.6.24.

Top of Page