重新排列字符串混合语言(LTR + RTL)?字符串、排列、语言、RTL

2023-09-06 07:59:47 作者:冷瞳冷心冷少年

我有一个混合的语言,(一个LTR和其他RTL)。当发送SMTP上的字符串,长度被混在一起。是有什么办法可以识别字符串文本?

I have a text with mixed languages, (one LTR and the other RTL).when sending the string on SMTP the string gets mixed up .Is there any way to recognize the string ?

推荐答案

RTL只影响文本的显示的,而不是传播。不知道什么是混淆可能意味着,但我建议你好好看看在MailMessage.BodyEncoding财产。默认为ASCII,不适合送样的RTL语言使用的字符。如果这样做没有帮助再考虑这个问题实际上可能是由您正在使用的邮件阅读器引起的。它可能不支持的RTL或不能处理的混合

RTL only affects the display of text, not the transmission. Not sure what "mixed up" might mean but I'd recommend you take a good look at the MailMessage.BodyEncoding property. The default is ASCII, not suitable for sending the kind of characters used in a RTL language. If that doesn't help then consider that the problem might actually be caused by the mail reader you are using. It might not support RTL or cannot handle a mix.