473,699 Members | 2,548 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP MSSQL non english characters, problems with freetds on linux

2 New Member
I've surfed this forum and found one thread which was talking about the same problem i've, but it didn't help in my situation.
http://www.thescripts. com/forum/thread510563.ht ml

I could connect to MSSQL server using freetds 8.0 and able to run queries to MSSQL server, but the query doesn't fetch anything when it runs on a column having datatype as VARCHAR having special character as in <méxico> (note the second character) the acute accent.

i've been trying to search a solution but no luck so far. I changed my datatype to nvarchar also, no change.

below is the TDSDUMP
------------------------------
util.c:288:Star ting log file for FreeTDS 0.64
on 2007-11-28 03:20:06 with debug flags 0x4fff.
config.c:158:At tempting to read conf files.
config.c:259:.. .$FREETDSCONF not set. Trying $FREETDS/etc.
config.c:275:.. .$FREETDS not set. Trying $HOME.
config.c:202:Fo und conf file '/usr/local/freetds/etc/freetds.conf' (default). Reading section 'MyServer2k'.
config.c:333:Lo oking for section global.
config.c:390:.. . Found section global.
config.c:393:Go t a match.
config.c:413:op tion = 'tds version' value = '4.2'.
config.c:413:op tion = 'client charset' value = 'UTF-8'.
config.c:457:td s_config_login: client charset is UTF-8.
config.c:413:op tion = 'text size' value = '64512'.
config.c:390:.. . Found section jdbc.
config.c:390:.. . Found section jdbc_42.
config.c:390:.. . Found section mypool.
config.c:390:.. . Found section myserver2k.
config.c:333:Lo oking for section MyServer2k.
config.c:390:.. . Found section global.
config.c:390:.. . Found section jdbc.
config.c:390:.. . Found section jdbc_42.
config.c:390:.. . Found section mypool.
config.c:390:.. . Found section myserver2k.
config.c:393:Go t a match.
config.c:413:op tion = 'host' value = '<SERVER HOST NAME>'.
config.c:440:Fo und host entry <SERVER HOST NAME>.
config.c:443:IP addr is <IP ADDRESS>.
config.c:413:op tion = 'port' value = '<SQL PORT>'.
config.c:413:op tion = 'tds version' value = '8.0'.
config.c:206:.. .Success.
+++++++++++++++ +++++++++++++++

I've also added the charset UTF-8 in freetds conf file, still no change.

I would be really greatful if someone please help me to get around this.

Thanks everyone in advance.

Best Regards
Hassan Ali
Nov 29 '07 #1
0 1765

Sign in to post your reply or Sign up for a free account.

Similar topics

1
2100
by: Antonis Konstantinos | last post by:
Hi all, My Linux (k2.4.13) machine is now working with PHP 4.3.3 with Apache 1.3.28 and Mysql 4.0.15a.. I am now writing a script that connects to a MSSQL v8.0 server. In order to do this I want to use PHP. Then I have installed FreeTDS and tested its script on the command line and it works fine. When I write a piece of php line, my web server returns me that "Call to undefined function: mssql_connect()"
3
2305
by: John Fabiani | last post by:
Hi, I'm hoping someone on the list has connected to sybase/MsSQL with something that works with DBAPI 2.0 from a linux box (SUSE 9.2) because I can't seem to get it done. I found Object Craft's python code that uses FreeTDS. But I can't get it compiled. The code is looking for "sybdb.h" (first error) - of course I don't have "sybdb.h". It is not in Object Crafts code nor in the FreeTDS source. I'm guessing that I need sybase develop...
0
2211
by: dan | last post by:
Hi, I connect to a microsoft SQL server from php. Php is running on linux (debian sarge) with the freetds package. The connection is secured through stunnel (version 3.26), with stunnel running locally on the web server and locally on the SQL server machine. This means php connects locally to the stunnel port, which then establishes a secure connection to stunnel on the sql server. There the data is then transmitted locally to the SQL...
0
1200
by: niraj.kumar.ait | last post by:
Hi I want to access the mssql database through c++ in linux. I dont want to use sysbase and php is it possible .I have freetds 0.63 . with regards Niraj
0
1100
by: erik.myllymaki | last post by:
I am using a script that's worked for me in the past on Windows, but now that i've moved it to a Linux machine it is not. The trouble seems to be when trying to insert escaped characters into a varchar field (\n \r ,etc.). ----------------------------------------------------------------------------- # conn = mx.ODBC.WINDOWS.DriverConnect('DSN=myDSN;UID=sa;PWD=pwd') conn = mx.ODBC.unixODBC.DriverConnect('DSN=myDSN;UID=sa;PWD=pwd')...
2
3095
by: Martin Lukasik | last post by:
Hi, I'm using Sybase driver under Linux and I'm trying to connect to MSSQL server 2000. But unfortunately connection fails. In Event Log on my Win 2k3 SBS I'm getting the following error message: Error: 17832, Severity: 20, State: 7 Connection opened but invalid login packet(s) sent. Connection closed. For more information, see Help and Support Center at
8
10550
by: eugenio | last post by:
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: (where the quotes are i...
0
1325
by: hurkpanpotgieter | last post by:
Hi All I'm trying to set up PHP with Microsoft SQL Server support on Fedora Core 5. I've tried using the FreeTDS libraries, and a connect with tsql works fine. I've a little test PHP file that simply connects to a SQL Server instance, executes a simple query and returns. If I run php -f /var/www/html/testSqlServer.php it works. (I've run
2
4954
by: vrba | last post by:
Hi, I need one web site in UTF8 with MSSQL2005 (customer request) Configuration: IIS6+PHP5/Win2003 (Czech locales)--> MSSQL/Win2003 Database returns data in CP1250, rest is correct in UTF8. I was tray Freetds. Config file I have in c:\freetds.conf, but IIS don't read it (probably) and don't use 'client encoding = UTF-8'.
0
8623
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9054
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8941
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8896
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5879
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4390
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4637
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3071
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2362
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.