Problem when inserting Data using Arabic or Farsi Language

  • Thread starter Thread starter Fahad
  • Start date Start date
F

Fahad

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.
 
Have you tried setting it to use unicode?
Here's more info on the subject:
http://msdn.microsoft.com/library/d...en-us/cpguide/html/cpconencodingbasetypes.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"/>
<globalization
fileEncoding="iso-8859-1"
requestEncoding="iso-8859-1"
responseEncoding="iso-8859-1"
/>
</system.web>
</configuration>
 
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/cpconencodingbasetypes.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"/>
<globalization
fileEncoding="iso-8859-1"
requestEncoding="iso-8859-1"
responseEncoding="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






.
 
Back
Top