473,378 Members | 1,471 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

problem with Arabic language.

55
Hello,

I have been haunted by this issue for a long time. I have a list of cities in a .DBF file called as "cities1.dbf". When i query the Arabic field & try to display in a drop down list, it shows some garbage values & not the actual arabic text.

Is this something to do with the encoding decoding. Earlier i tried do solve this with the .net Encoding decoding, but couldnt get success.

Please advise.

Expand|Select|Wrap|Line Numbers
  1. .aspx
  2. ----------
  3. <body>
  4.     <form id="form1" runat="server">
  5.     <div>
  6.     Cities_Arabic <asp:DropDownList ID="DropDownList1" runat="server" DataValueField ="city_lcase" DataTextField="city_a"></asp:DropDownList>
  7.     </div>
  8.     </form>
  9. </body>
  10.  
  11. .aspx.vb
  12. ------------
  13. Dim cityName As String = "_cities"
  14. Dim strSql As String = "SELECT * FROM cities1"
  15. DropDownList1.DataSource = generalClass.ExecuteDataTableQueryDBF(strSql, cityName)
  16. DropDownList1.DataBind()
  17.  
  18. Public Shared Function ExecuteDataTableQueryDBF(ByVal SelectSTR As String, ByVal city As String) As Data.DataTable
  19.         Dim oCnn As New OleDbConnection
  20.         Dim iCount As Integer = 0
  21.         Dim strSql As String
  22.         Dim da As New OleDbDataAdapter
  23.         Dim dt As New DataTable
  24.         Try
  25.             oCnn.ConnectionString = System.Configuration.ConfigurationManager.AppSettings("DBFConnetionString1").ToString + city + System.Configuration.ConfigurationManager.AppSettings("DBFConnetionString2").ToString
  26.  
  27.             If oCnn.State = ConnectionState.Closed Then
  28.                 oCnn.Open()
  29.             End If
  30.  
  31.             strSql = SelectSTR
  32.             da = New OleDb.OleDbDataAdapter(strSql, oCnn)
  33.             da.Fill(dt)
  34.  
  35.         Catch ex As Exception
  36.         Finally
  37.             If oCnn.State = ConnectionState.Open Then
  38.                 oCnn.Close()
  39.             End If
  40.         End Try
  41.         Return dt
  42.     End Function
Here is a link to the problem screen shot which i am facing.

http://picasaweb.google.com/lh/photo...eat=directlink

Thanks & regards,
Aug 30 '09 #1
2 4148
hash4sp
55
hello.. is there anyone who can give me some suggestion on this please
Nov 20 '09 #2
Frinavale
9,735 Expert Mod 8TB
I think this has a lot to do with the character set that is being used.
If the character set being used doesn't support Arabic characters then you won't be able to display them..

Check out this thread on Arabic in ASP.

Also check out this MSDN article on Character Set Recognition.

And check out this CodeProject article about Encoding in ASP.NET.

-Frinny
Nov 20 '09 #3

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

Similar topics

1
by: Hari Shankar | last post by:
Dear all I am supposed to develop a world ready application in C# 2003 (which will run in xp) which should aupport Arabic & Hebrew also. My doubts(Fears) are: 1. Do i have to create all the...
4
by: Shoshinsha | last post by:
Does anyone have some experience with creating VB application where the captions for forms and buttons are in Arabic ?
1
by: haitham | last post by:
hi suppot team can any one tell me how i set arabic language as a default language when i start the project thx
3
by: MaaSTaaR | last post by:
Hello ... firstly , sorry for my bad English . i have problem with open() function when i use it with file which name in Arabic , the open() will not find the file , and i am sure the file is...
0
by: shizah | last post by:
First of all thanks alot for ur response. Let me clear my point again to u so that u can suggest me a better advice. Well sir u r very much right in this contrast that it can be implemented in my...
0
taroo2ah
by: taroo2ah | last post by:
Hello everybody, Making backup of a MySQL database allways ruins the data inside it! I have tried many things and I am now againest something that I need to know: what is the deference between...
1
by: ahmed222too | last post by:
the jtextfield donot accept Arabic language font when i run this code jtextfield.settext="ذهب الولد إلى المدرسة"; the arabic font change into another font in the jtextfield
2
JustRun
by: JustRun | last post by:
Hi, I'm developing a web application using ASP.NET2.0 with C#, I have tried to use custom validation controls to validate my forms, it worked very well in the English language , but when i test it...
2
by: wassimdaccache | last post by:
Dear all I am using office 2007 SP2 I am trying to write a message box. msgbox "هل تريد حفظ هذه المعلومات ؟",vbYesNo Everything is OK but I am getting unknown symbole in place of the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.