开发者

How to encode text to suit languages written from right to lef

开发者 https://www.devze.com 2023-03-21 00:54 出处:网络
I am building the site in hebrew..The problem is that every exclamation mark, or any other mark which isnt a letter will pass to the beginning:

I am building the site in hebrew..The problem is that every exclamation mark, or any other mark which isnt a letter will pass to the beginning:

Example "@#$%^&!משפט זה נכתב על ידי"

would be rendered as text when put into a label: "משפט זה נכתב על ידי@#$%^&!"

How can I prevent that phenomena from happening in TextBoxes, lables..etc.

                <cc1:Editor 
                    ID="Editor1" 
                    Width="850px"  
                    Height="400px"
                    runat="server" 
                   开发者_StackOverflow中文版  style="z-index: 1; direction:rtl; left: 137px; top: 485px; position: absolute; height: 400px; width: 850px;"/>

see direction is right to left.. But when I type... it doesnt type normally like I type in English and the phenomena aforementioned happens..


Set the direction tag in css to rtl. e.g :

<asp:TextBox ID="id1" runat="server" style="direction:rtl; text-align:right;">
</asp:TextBox>
0

精彩评论

暂无评论...
验证码 换一张
取 消