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 Chung Leong on 07/11/06 14:08

eugenio@iatmgu.com wrote:
> Hi...not sure if this is the right group for this posting, but i'm
> don't know where else to post. I've got a simple problem...I have a
> linux box running apache 2.0 and php5. I'm trying to use the mssql
> functions in php to retreive data from a mssql server 2k. I'm pulling
> data from the customers table in the northwind db and i'm getting
> strange characters instead of special characters. Below is a sample
> output:

The text columns in the Northwind database are all nvarchar/ntext--i.e.
Unicode. These have to be flatten into an 8-bit encoding, since the
libraries used by the mssql extension can't handle Unicode (nor can PHP
itself for that matter).

On Windows, I believe the encoding is determined by the current locale.
On Linux, it's set in freetds.conf.

 

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

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