Arabic Text. Point Problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sebouh181
    New Member
    • Apr 2007
    • 26

    #1

    Arabic Text. Point Problem

    Hello everyone

    I have an ASP.NET website with arabic interface.

    When I type arabic text and at the end of the text I put a point, the point is displayed at the beginning of the text.

    example :
    مرحبا.

    As u noticed the point is displayed at the beginning of the text where it must be displayed at the end.

    Can anyone Help me??
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    Assuming they are separate characters, you could adapt something like this:
    Code:
    void onClick_btnReverse(Object src, EventArgs e) {
    
    char [] strArray = txtReverse.Text.ToCharArray(); 
    Array.Reverse( strArray ); 
    string strReversed = new string( strArray ); 
    lblReverse.Text = strReversed;
    
    }

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      Arabic text is written right to left correct?
      Have you set the mode to be "right to left", since it defaults to "left to right"?
      Are you adding the Point in code?
      don't know how the "right to left" order effects other things, but
      myTextBox.Text+ =".";
      will normally add a point to the far right side of the string. You may need to add it to the far LEFT:
      myTextBox.Text= "."+myTextBox.T ext;
      If the text direction doesn't effect the object's member values, you have to do the reverse method mentioned above I would guess.

      Comment

      Working...