从右到左串联英语和阿拉伯语不正确 [英] incorrect right to left concatenation english and Arabic
本文介绍了从右到左串联英语和阿拉伯语不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试将英语字符串与阿拉伯字符串连接起来
I'm trying to concatenate an English string with Arabic string
string followUpFormula = "FIF";
string renewAbbreviation = "ع.ت" ;
string abbreviation = followUpFormula +"-"+ renewAbbreviation;
var result = 10 + "/" + abbreviation + "/" + 2016;
结果是10 / FIF-ع.ت/ 2016
但我想显示他们是这样的:10 / FIF-ع.ت/
2016
the result is 10/FIF-ع.ت/2016
but i want to display them like this: 10/FIF-ع.ت/
2016
我该怎么做?
谢谢
how can I do that? thanks
推荐答案
代码添加项
string followUpFormula = "FIF";
string renewAbbreviation = "ع.ت" ;
string abbreviation = followUpFormula +"-"+ renewAbbreviation;
var lefttoright = ((Char)0x200E).ToString();
var result = 10 + "/" + abbreviation + lefttoright + "/" + 2016;
字符0x200E是一个特殊字符,它告诉以下文本从左到右阅读有关此字符的更多信息,请参见此处。
Char 0x200E is a special character that tells the following text to read left to right see here for more information on the character.
Char 0x200F切换为从右到左的格式。
Char 0x200F switches to a right to left format.
这篇关于从右到左串联英语和阿拉伯语不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文