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.
[Back to original message]
|