You are here: Re: Php retreiving data from mssql and special characters « PHP Programming Language « IT news, forums, messages
Re: Php retreiving data from mssql and special characters

Posted by deciacco on 07/11/06 16:11

That did it!!!

I don't quite understand how it works or why I needed to use the php
function putenv() but it works...

I added the line marked by -->

[MyServer2k]
host = 192.168.0.1
port = 1433
tds version = 8.0
--> client charset = UTF-8

and I went back to using PEAR:

$dbh = DB::connect("mssql://sa:password@MyServer2K/northwind");

Thank you!!

Chung Leong wrote:
> deciacco wrote:
> > Discovered more information:
> >
> > I changed my code from using
> > $dbh = DB::connect("mssql://sa:password@192.168.0.1/northwind"); to
> > simply using the freetds connection
> >
> > putenv("FREETDSCONF=/etc/freetds.conf");
> > $db=mssql_connect("MyServer2k","sa","password");
> >
> > (freetds.conf setting)
> > [MyServer2k]
> > host = 192.168.0.1
> > port = 1433
> > tds version = 8.0
> >
>
> Try adding the line
>
> client charset = cp1250
>
> or
> client charset = utf8

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация