Click here to Skip to main content
15,885,141 members
Please Sign up or sign in to vote.
2.56/5 (3 votes)
See more:
I have an right to left and left to right mixed languaged, which need to be rendered on to the windows label for display.

للاستمرار Confirm أو Enter ادخل رقم بطاقة الائتمان خاصتك. اضغط على مفتاح

but when it is spilt into multiple lines the orders of words is changing randomly by the string which holds the text.

so I have trid to parse entire string and reverse so that it can be displayed in lines the way I want(right to left).

Can anyone help me how to reverse this string by word ? also split by index correctly?

both are not working as they do with LTR strings.


Thanks in advance.
Posted
Comments
Pascal-78 17-Jul-15 11:01am    
Did you have Right-to-Left-Mark and Left-to-Right-Mark characters (U+200F and U+200E) inside your string to switch from LTR to RTL and RTL to LTR ?
babu xyz 20-Jul-15 1:09am    
No the input will not have the LTR or RTL Mark.
babu xyz 20-Jul-15 1:09am    
The string will be combination of both.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900