473,495 Members | 2,128 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to insert Arabic characters in MS SQL Server 2005?

52 New Member
Dear ,

i am trying to use php with MS SQL 2005.
while i am trying connect using follwing code and inserting arabic data using quey then it stores the arabice data in database as garbase. can any one suggest me abt this problem?

i solved this proble by using mysql_query("SET NAMES utf8"); is there any similar anything in MS SQL server?
[code]

$myServer = "10.0.120.58";
$myUser = "sa";
$myPass = "123456";
$myDB = "POSSQL";

//connection to the database
$dbhandle = mssql_connect($myServer, $myUser, $myPass)
or die("Couldn't connect to SQL Server on $myServer");

$dbSelect = mssql_select_db("$myDB")or die("Cannot select DB");



if(!$dbhandle)
{
echo "Not connectd to MSSQL DB";
}
Feb 23 '11 #1
3 3811
ck9663
2,878 Recognized Expert Specialist
Start from here...

Good Luck!!!

~~ CK
Feb 23 '11 #2
farukcse
52 New Member
Dear,
Thanx for your reply.
but it doesnot support to fix this problem.
for this same i used set names utf8 in mysql_query().
so can you tell how to do this same functionaly for mssql?

Your quick response is highly appriciated.

Regards,
Faruk
Feb 24 '11 #3
farukcse
52 New Member
Dear,
I may need to set its connection encoding upon connecting to the database in MSSQL.

The equivalent of running SET NAMES utf8 under mysql after connecting.

Regards,
Faruk Chowdhury,
Feb 24 '11 #4

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

Similar topics

12
1931
by: frizzle | last post by:
Hi there! I have (for sofar) a small problem: I have a site, with mySQL-backend, and an online admin system. The site is in three languages: 1 of them is German. My poblem concerns the 'ß'...
0
1331
by: Briefly F.S. | last post by:
Hi, I have a problem with show to turkish character of the JDBC driver for MYSQL. I have a mysql database.And It's default-character-set is latin5.(This is supporting the turkish characters) ...
8
3457
by: Agnes | last post by:
In my .net ,i need to generate an xml file , however, user may input a chinese character, Then , the xml will got something unknow characters. the following is my code, Does anyone know how to...
4
1752
by: Eps | last post by:
My program has an ini file which i read in the settings for the program. The main setting is the path where files are to be saved. At the moment it doesn't work, but if I hardcode the path it does...
0
1609
by: Mustafa Yesilkaya | last post by:
have a problem with Sql Server. When i insert or update a data ,i cant see turkish characters like ("Þ,Ý,Ð") in tables. But when i write datas myself in table ,i can see with SELECT command with...
2
1571
by: snthampi | last post by:
I have a C# asp.net project in which I create meta keywords dynamically. I have a problem with "&" character. When the page is rendered, the "&" character is converted into "&". Is there any...
2
2264
by: Ozer | last post by:
Hi friends, I wanna ask something. I use javascript menu on my user interface. And the js files contains special(turkish) character. I need to use codepage=1254 attribute in my @Page tag. If i...
0
1383
by: DCC700 | last post by:
After converting a web application to 2005, I am receiving an invalid character error when I change the value in a dropdown list. The dropdown list is set to postback on selected index changed and...
10
12706
by: farukcse | last post by:
Dear Sir, i am facing a encoding problem with MySQL data base and phpMyAdmin. i developed a form . From wher user can insert the Car plate No. to the MySQL database.Both of the php file for...
3
8569
by: farukcse | last post by:
Dear Sir, i am facing a problem with encoding for arabic characters. here is the code: 1.test.html <html> <body> <script type="text/javascript"> var AJAX = { initialize:...
0
6991
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...
1
6878
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...
0
7373
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...
0
5456
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4897
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4583
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...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1405
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 ...
1
649
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.