2

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 ?

j0k
  • 22,600
  • 28
  • 79
  • 90
user437631
  • 1,112
  • 4
  • 12
  • 28

1 Answers1

2

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.

Hans Passant
  • 922,412
  • 146
  • 1,693
  • 2,536