构建不同语言和代码页的字符串

发布于 2024-10-08 13:50:08 字数 211 浏览 0 评论 0原文

我需要构建一个由波斯语字符、英语和数字组成的字符串 波斯语字符应具有阿拉伯语代码页(windows-1256) 例如 9 个空格字符 + 3 位数字 + 长度为 pf 30 的波斯语人名,其前面有空格以成为 30 长度字符 + 等 “---------111---------------------我的” 当我在消息框中显示字符串时,字符串的顺序不是我想要的,

我该怎么做才能得到上述结果?

I need to build an string made up of farsi charachter english and number
farsi char should have code page of arabic (windows-1256)
for example
9 character of space +numer of 3 digit +name of person in farsi with length pf 30 which has spaces befor it to becom 30 length char + etc
"---------111---------------------سارا میری"
When I show the string in messagebox the order of string is not what I want

What should I do to get the above result?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

美男兮 2024-10-15 13:50:08

字符串的顺序不是我想要的

您的意思是字符串本身中单词的顺序?

波斯语是从右到左的语言,因此您可能需要 RTL 文本方向性

请参阅:

the order of string is not what I want

You mean order of the words in the string itself?

Farsi is Right-To-Left Language so you probably need RTL text directionality

See:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文