Skip to Content.
Sympa Menu

freetds - Re: [freetds] mssql_connect : Unable to connect to server

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Lowden, James K" <LowdenJK AT bernstein.com>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] mssql_connect : Unable to connect to server
  • Date: Tue, 8 Nov 2005 13:10:43 -0500

> From: Pedro Barbosa
> Sent: Tuesday, November 08, 2005 12:37 PM
>
> Thanks for that, but i solved it by exporting LANG=pt_PT I wanted
> to use the DB to build xml for dspace and with that i only had to
> define ISO-8859-1 in the xml header.

OK. tsql should report your locale now encodes as ISO 8859-1.

FreeTDS defaults to ISO 8859-1 if there's no 'client charset' defined in
freetds.conf.

--jkl

> Lowden, James K wrote:
> >>From: Pedro Barbosa Sent: Tuesday, November 08, 2005 6:45 AM
> >>James K. Lowden wrote:
> >>
> >>>>Frediano Ziglio wrote:
> >>>>
> >>>>>Il giorno ven, 04/11/2005 alle 16.18 +0000, Pedro Barbosa ha
> >>>>>scritto: when >i do a select in a table i get the tipical
> >>>>>portuguese caracters like a >square. how can i solve this?
> >>>>>
> >>>>>You have to use a client encoding that is compatible.
> >>>>>
> >>>Pedro Barbosa wrote:
> >>>
> >>>>freddy can you be a litlle more specific?
> >>>>
> >>>The "client charset" in freetds.conf should match the character
> >>>set on the client indicated by locale(1).
> >
> >>when i try to access from [freetds]/bin/tsql .... it says :
> >>locale is "pt_PT.UTF-8" locale charset is "UTF-8"
> >>
> >>
> >
> >Good. Your locale is the Portuguese language using the UTF-8
> >character set. Your client wants FreeTDS to convert characters
> >e.g. "é ou ç ão" from the server's encoding (iso_1, perhaps) to
> >UTF-8.
> >
> >Probably you should change your freetds.conf entry to:
> >
> >[server]
> > host = ip port =1433
> > tds version = 8.0
> > client charset = utf-8

-----------------------------------------
The information contained in this transmission may be privileged and
confidential 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. If you, as the intended
recipient
of this message, the purpose of which is to inform and update our clients,
prospects
and consultants of developments relating to our services and products, would
not
like to receive further e-mail correspondence from the sender, please "reply"
to the
sender indicating your wishes. In the U.S.: 1345 Avenue of the Americas, New
York,
NY 10105.




Archive powered by MHonArc 2.6.24.

Top of Page