473,949 Members | 28,465 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem when inserting Data using Arabic or Farsi Language

I have a web forms that I insert data in database using
arabic and Farsi language. The problem is when I insert a
record, A record is added but I get blank fields in the
columns. When I insert a record using English language,
everything is okay.

It is a language problem. Is there anyway I can set the
language of ASP .Net so that It knows that I am using
another language rather then English?

I am using MS Access in Windows XP professional.
Nov 18 '05 #1
2 2551
Have you tried setting it to use unicode?
Here's more info on the subject:
http://msdn.microsoft.com/library/de...gbasetypes.asp

Also, have you checked the Globalization section of the web.config?
Try changing it to something more like this:

<!-- Web.Config Configuration File -->
<configuratio n>
<system.web>
<customErrors mode="Off"/>
<globalizatio n
fileEncoding="i so-8859-1"
requestEncoding ="iso-8859-1"
responseEncodin g="iso-8859-1"
/>
</system.web>
</configuration>

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"Fahad" <co*********@ya hoo.com.please. no.junk> wrote in message
news:04******** *************** *****@phx.gbl.. .
I have a web forms that I insert data in database using
arabic and Farsi language. The problem is when I insert a
record, A record is added but I get blank fields in the
columns. When I insert a record using English language,
everything is okay.

It is a language problem. Is there anyway I can set the
language of ASP .Net so that It knows that I am using
another language rather then English?

I am using MS Access in Windows XP professional.

Nov 18 '05 #2
Thank You very much. It is working now.
-----Original Message-----
Have you tried setting it to use unicode?
Here's more info on the subject:
http://msdn.microsoft.com/library/default.asp? url=/library/en-us/cpguide/html/cpconencodingba setypes.asp
Also, have you checked the Globalization section of the web.config?Try changing it to something more like this:

<!-- Web.Config Configuration File -->
<configuration >
<system.web>
<customErrors mode="Off"/>
<globalizatio n
fileEncoding="i so-8859-1"
requestEncoding ="iso-8859-1"
responseEncodin g="iso-8859-1"
/>
</system.web>
</configuration>

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able- consulting.com
"Fahad" <co*********@ya hoo.com.please. no.junk> wrote in messagenews:04******* *************** ******@phx.gbl. ..
I have a web forms that I insert data in database using
arabic and Farsi language. The problem is when I insert a record, A record is added but I get blank fields in the
columns. When I insert a record using English language,
everything is okay.

It is a language problem. Is there anyway I can set the
language of ASP .Net so that It knows that I am using
another language rather then English?

I am using MS Access in Windows XP professional.

.

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
5056
by: sinasalek | last post by:
i have a problem with MySQL 4.1.x and UTF8. in version 4.0, i'm using html forms with utf8 charset for inserting unicode strings. but in version 4.1.x it is not working! if i change the charset of column, ALTER TABLE `icons` CHANGE `name_farsi` `name_farsi` VARCHAR( 99 ) CHARACTER SET utf8 COLLATE utf8_persian_ci DEFAULT NULL and change default charset of database like below code :
1
4024
by: NohaKhalifa | last post by:
Dear All , I have a very big problem regarding using Arabic Character set . I'm Developing an Arabic Web Site using Asp and connecting to Access Database . but i have a problem retreiving data from database after i uploaded site to the hosing server .... All the arabic data retreived from database using Asp appears as question marks ??????? and only staic arabic written in asp pages appears well but which retreived from database...
3
490
by: NohaKhalifa | last post by:
Hi All , I have a problem facing me using CDONTS Componet for sending mail . I have a form and i get data from it and send it to mail using CDONTS In HTML format . My Problem is that form contains arabic data and users can fill form with arabic data, when so happened the mail sent represent arabic data as "???????"
3
2800
by: mostafa atalla | last post by:
Dear sirs: I'm making an application using C# and i connect through it to a database made by MSSQL server but i have a problem when inserting or updating in the database in arabic that each arabic letter is replaced by a question mark (?) the code i'm using to insert is oleDbDataAdapter1.InsertCommand.CommandText=" sql Statement"; and to update is: oleDbDataAdapter1.UpdateCommand.CommandText="sql
6
3131
by: Michelle Stone | last post by:
Hi I am doing a bilingual .NET application for English/Arabic. On a web form, I have some edit boxes for data entry in Arabic and some for entry in English. Right now the user has to change his keyboard language by pressing ALT+SHIFT (or by changing the language manually elsewhere) each time he wants to shift from one language to another.
3
1224
by: SOS | last post by:
hi guys ! i don't know is this a proper group for discussing about this problem or not .... anyway , i have a Flash news board in my asp.net page this news board get data from an aspx page and this page read data from database. to show external data , i use of "loadVariablesNum" in my Flash news board. my data are "Farsi" & "Arabic" strings and when i show them in the Flash news board , these data doesn't showed correctly ...
5
3716
by: althafexcel | last post by:
hi everyone Im trying to include an external js in my aspx page under the head tag, it doesn't load or it displays an object expected error whenver the function from the .js is called. Actually for repeated html im using the external js, i mean the TOP, BOTTOM they are repeated in every page, so i include them as functions in the external js and call them. Why it doesn't work?
2
8936
by: Ch Pravin | last post by:
Hi All: I am having the following xml which i need to convert to excel using xslt. Please help me out. Afghanistan.xml <?xml version="1.0" encoding="utf-16"?> <Languages BuildVersion="1,5,0815,0 " CountryName="Afghanistan" > <Language locale="English">
0
1649
by: SAM689532 | last post by:
I have DB2 v7.1.2 on IBM Z/OS and DB2 V8.1.0.36 Level ID 01010106 Build Level s021023 with JDK 1.3.1 on my Windows platform. I am trying to load some Arabic character data to our mainframe DB2 tables. the EBCDID CCSID is 420. WIN CCSID is 1256. The data originally is from SQL Server. When I load the data to my Windows DB2, everything is fine. But when I export the data from my windows DB2 to an IXF file, and then import it to my...
0
10169
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11590
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
11184
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
11358
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
10697
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...
1
8261
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7435
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
6122
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...
3
3552
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.