Arabic Problem

Last post 05-13-2007 4:43 AM by Ahmad Abu Sharkh. 13 replies.

Sort Posts:

  • Arabic Problem

    11-07-2005, 10:04 AM
    • Loading...
    • walidtalat
    • Joined on 10-24-2005, 8:19 AM
    • Posts 2

    Hi everybody,

    I'm an arabic developer,need to display arabic text on the forums pages.

    unfortunately,the arabic text appears in the combo boxes from left to right like this بالمنتدى جديدة مراسلات وجود عند 
    Please if anyone knows how to solve this problem ,I'm waiting.
    Many thanx.

  • Re: Arabic Problem

    11-08-2005, 8:10 PM
    Are you referring to the dropdown list box?  If so, the dropdown list box responds to the dir property set on the document.  Select DOCUMENT in the properties Window, then set the property to RTL and the text should display correctly.
  • Re: Arabic Problem

    11-13-2005, 6:16 AM
    • Loading...
    • walidtalat
    • Joined on 10-24-2005, 8:19 AM
    • Posts 2
    Many thanx snoriver520 for reply.
    But where to set the dir property and how to make The web form displays correctly from right to left.Meaning the controls themselves (not only the text) display from right to left.
    Many thanx again.
  • Re: Arabic Problem

    11-13-2005, 11:15 AM
    What kind of a development IDE are you using?
    Amin
    http://360.yahoo.com/amins2s
    http://www.aminsadeghi.com
  • Re: Arabic Problem

    11-13-2005, 12:14 PM
    • Loading...
    • voodzzz
    • Joined on 08-20-2005, 11:15 AM
    • Posts 7
    Sadik, try putting this to your web.config file, hope this helps:

    <globalization requestEncoding="windows-1256" responseEncoding="windows-1256" fileEncoding="windows-1256" culture="ar-SA" uiCulture="ar-SA" />

    I also do have one problem with arabic guys, I have a database in sQL server that contains arabic data, but its displaying ???????????????? junk data, the uiculture is set to arabic but its displaying dump data upon rendering the page



  • Re: Arabic Problem

    11-14-2005, 12:52 PM

    You can set the DIR property on the document, or a div or span.  Select "DOCUMENT" in the properties window.  Select the dir property, and set the value to rtl.  It will generate a line like this in the html source:
    <html xmlns="http://www.w3.org/1999/xhtml" dir="rtl"
    >
    You can also set it on a div or a span, and other individual elements depending on how you want the page laid out. 
    Setting dir on the document affects the entire page, which means both the page layout and on the control behavior within the page.

    You can find more detailed information on how to support Arabic at this location:  http://www.microsoft.com/middleeast/msdn/arabicsupp.aspx

  • Re: Arabic Problem

    11-19-2005, 3:05 PM
    • Loading...
    • rmprimo
    • Joined on 02-24-2003, 12:25 PM
    • Posts 727
     voodzzz wrote:

    I also do have one problem with arabic guys, I have a database in sQL server that contains arabic data, but its displaying ???????????????? junk data, the uiculture is set to arabic but its displaying dump data upon rendering the page





    This looks like a client browser issue. Is that what you mean by "displaying"?

    Even if you do everything right on the server end(both asp.net, IIS and the db) if the client browser encoding is not set properly it will display these ????????

    Try changing it in View => Encoding menu

    Also try looking at the client View => Source to see if the text is showing properly.

    HTH!
    Regards,

    Rob
  • Re: Arabic Problem

    11-19-2005, 3:39 PM
    • Loading...
    • Caddre
    • Joined on 06-23-2003, 9:53 AM
    • Indy
    • Posts 5,308
    You are getting character conversion use unicode data type in SQL Server NChar, NVarchar 4000 limt and NText 1gig because unicode is multi bytes.  You also need column level collation for Arabic in your create table statement.  Run a search for unicode collation and code page in SQL Server BOL (books online).  Hope this helps.
    Kind regards,
    Gift Peddie
  • Whisper [:-*] Re: Arabic Problem

    11-24-2005, 5:34 AM
    • Loading...
    • ahmed_elnoby
    • Joined on 11-17-2005, 10:29 AM
    • Egypt
    • Posts 45

    hi voooodzzzzz

    i think your problem in the arabic characters coding can be sloved by changing the data type of the arabic columns to nvarchar ntext . thus your app will work correctly .

    thnx

    Ahmed El Noby
    Senior Web Developer
    MCP,MCTS
  • Re: Arabic Problem

    10-24-2006, 6:31 AM
    • Loading...
    • luke78
    • Joined on 10-24-2006, 10:14 AM
    • Posts 2

    hi

     and if i can't change the data type?? there is another mode?

  • Re: Arabic Problem

    10-24-2006, 9:57 AM
    • Loading...
    • Caddre
    • Joined on 06-23-2003, 9:53 AM
    • Indy
    • Posts 5,308
    luke78:

    hi

     and if i can't change the data type?? there is another mode?

    Hi,

    I don't know of another way however Microsoft have created a complete site for Arabic application development WinForm and WebForms.  Hope this helps.

    https://www.microsoft.co.ke/middleeast/msdn/arabicsupp.aspx

    Kind regards,
    Gift Peddie
  • Re: Arabic Problem

    03-20-2007, 4:51 PM
    • Loading...
    • wdeveloper
    • Joined on 03-20-2007, 9:54 AM
    • Doha, Qatar
    • Posts 12
    Caddre:

    Hi,

    I don't know of another way however Microsoft have created a complete site for Arabic application development WinForm and WebForms.  Hope this helps.

    https://www.microsoft.co.ke/middleeast/msdn/arabicsupp.aspx

     This Link is broken, can you please send me an updated one is its still available

     

     

  • Re: Arabic Problem

    03-20-2007, 5:05 PM
    • Loading...
    • wdeveloper
    • Joined on 03-20-2007, 9:54 AM
    • Doha, Qatar
    • Posts 12
    luke78:

    hi

     and if i can't change the data type?? there is another mode?

     I think there is a way, try to change the requestEncoding in the web.config to windows-1252

    (Honestly, changing the requestEncoding to windows-1252 used to work well for your case in ASP 3.0), hope it works for you in ASP.NET

     

  • Re: Arabic Problem

    05-13-2007, 4:43 AM

     Hi

    GO in VS to:

    1- file ---> save YourArabicWebform as

    2- on the right save button arrow

    3-click at this arrow --->save with encoding --->UTF with Signturel-codepage 65001

    Best regards 

     

    Ahmad Abu Sharkh
    Web Developer
    Digital Colors Design Co. LLC
    P.O. Box 17515 Amman 11195
    Mobile: (+962 79) 512 0349
    Email:programmer_ahmad@yahoo.com
    www.digital-colors.com
Page 1 of 1 (14 items)
Microsoft Communities