Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个混合语言的文本(一个 LTR 和另一个 RTL)。在 SMTP 上发送字符串时,字符串混淆了。有没有办法识别字符串?
RTL 只影响文本的显示,不影响传输。不确定“混合”可能意味着什么,但我建议您仔细查看 MailMessage.BodyEncoding 属性。默认为 ASCII,不适合发送 RTL 语言中使用的那种字符。如果这没有帮助,那么请考虑问题实际上可能是由您使用的邮件阅读器引起的。它可能不支持 RTL 或无法处理混合。