如何为阿拉伯语反转括号的方向(从右到左的文本) [英] How to invert direction of brackets (for a right to left text) for arabic language

查看:59
本文介绍了如何为阿拉伯语反转括号的方向(从右到左的文本)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在阿拉伯语中使用方括号时,它们被颠倒,如附加的 .
我曾尝试使用 textDirection RTL 和 BidiFormatter,但它们都不起作用.
正确的字符串类似于(باقة مسافر إسبوعي (مسبق)".
有谁知道,怎么解决?

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?

推荐答案

我已经找到了.解决方法如下:

I have found it. The solution is below:

String targetString = "\u200E"+originalString

这篇关于如何为阿拉伯语反转括号的方向(从右到左的文本)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆