我正在尝试将英文字符串与阿拉伯字符串连接起来
string followUpFormula = "FIF";
string renewAbbreviation = "?.?" ;
string abbreviation = followUpFormula +"-"+ renewAbbreviation;
var result = 10 + "/" + abbreviation + "/" + 2016;
Run Code Online (Sandbox Code Playgroud)
结果是10/FIF-ع.ت/ 2016,但我想像这样显示:10/FIF-ع.ت/
2016
我怎样才能做到这一点?谢谢
在代码中添加了几个
string followUpFormula = "FIF";
string renewAbbreviation = "?.?" ;
string abbreviation = followUpFormula +"-"+ renewAbbreviation;
var lefttoright = ((Char)0x200E).ToString();
var result = 10 + "/" + abbreviation + lefttoright + "/" + 2016;
Run Code Online (Sandbox Code Playgroud)
Char 0x200E是一个特殊字符,它告诉以下文本从左到右阅读,有关此字符的更多信息,请参见此处。
字符0x200F切换为从右到左格式。
| 归档时间: |
|
| 查看次数: |
2240 次 |
| 最近记录: |