locked
Arabic Problem RRS feed

  • Question

  • User-474951579 posted

    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.

    Monday, November 7, 2005 10:04 AM

All replies

  • User-722164976 posted
    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.
    Tuesday, November 8, 2005 8:10 PM
  • User-474951579 posted
    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.
    Sunday, November 13, 2005 6:16 AM
  • User297669845 posted
    What kind of a development IDE are you using?
    Sunday, November 13, 2005 11:15 AM
  • User1417681536 posted
    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

    [img]http://marketing.adabpixel.com/error.gif[/img]

    Sunday, November 13, 2005 12:14 PM
  • User-722164976 posted

    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

    Monday, November 14, 2005 12:52 PM
  • User1183903743 posted

    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

    [img]http://marketing.adabpixel.com/error.gif[/img]



    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!
    Saturday, November 19, 2005 3:05 PM
  • User1416329745 posted
    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.
    Saturday, November 19, 2005 3:39 PM
  • User89244710 posted

    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

    Thursday, November 24, 2005 5:34 AM
  • User378786341 posted

    hi

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

    Tuesday, October 24, 2006 6:31 AM
  • User1416329745 posted

    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

    Tuesday, October 24, 2006 9:57 AM
  • User1181909002 posted

    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<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>

    <o:p> </o:p>

     

    Tuesday, March 20, 2007 4:51 PM
  • User1181909002 posted

    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<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>

    (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<o:p></o:p>

     

    Tuesday, March 20, 2007 5:05 PM
  • User422511103 posted

     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 

     

    Sunday, May 13, 2007 4:43 AM