问题
When I am trying to use brackets in Arabic language, they are getting reversed as shown in the attached
.I have tried using textDirection RTL and BidiFormatter, but none of them works.
The correct string is something like this "(باقة مسافر إسبوعي (مسبق".
Does anyone know, how to solve it?
回答1:
I have found it. The solution is below:
String targetString = "\u200E"+originalString
来源:https://stackoverflow.com/questions/24405747/how-to-invert-direction-of-brackets-for-a-right-to-left-text-for-arabic-langua