c# - Richtextbox inputting Arabic via Unicode -
i inputting arabic text via unicode richtextbox , looking ok. numbers below should example text on left , numbers on right. box exact size not worried having on right or left of screen. image , unicode below
fe9e fe98 feb8 fec6 feeb 0020 0660 0662 0664 0668
i try copy richtext box , text flips around , changes first , last char not want , numbers move left of text again not want.i want copy byte byte.
i found left , right mark , tried still not work
rchtxbx_bottom.selectionfont = new system.drawing.font("san serif", 20); rchtxbx_bottom.appendtext("copied string = " + rchtxbx_top.text + "\r"); rchtxbx_bottom.selectionfont = new system.drawing.font("san serif", 20); rchtxbx_bottom.appendtext("right left mark = \u200f" + rchtxbx_top.text + "\u202c\r"); rchtxbx_bottom.selectionfont = new system.drawing.font("san serif", 20); rchtxbx_bottom.appendtext("left right mark = \u200e" + rchtxbx_top.text + "\u202c\r"); rchtxbx_bottom.selectionfont = new system.drawing.font("san serif", 20); rchtxbx_bottom.appendtext("forceltr string = " + forceltr(rchtxbx_top.text) + "\r"); i tried right left in textbox properties menu. 
any ideas of how can round issue?
i solved issue creating function checks each char in unicode. if page fe add \u202c after shown below.
string = string.format("\ufe9e\u202c\ufe98\u202c\ufeb8\u202c\ufec6\u202c\ufeeb\u202c\u0020\u0660\u0662\u0664\u0668 aa1"); 
Comments
Post a Comment