How to invert direction of brackets (for a right to left text) for arabic language

浪子不回头ぞ 提交于 2019-12-23 10:53:09

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!