Gmailから取得した情報が文字化けしてしまう

Hi @mmt1
Welcome to UiPath

The garbled text issue is likely due to encoding changes after migration. Try these steps:

  1. Convert the email body using new System.Text.UTF8Encoding().GetString(mailMessage.BodyAsBytes).
  2. Check if mailMessage.BodyEncoding is set correctly and use its encoding.
  3. Try mailMessage.AlternateViews(0).GetText() to get the email content.
  4. Make sure your IMAP server returns emails in UTF-8.
  5. Update UiPath Mail Activities and other related packages.

If it’s helpful pls mark as a solution. Thanks

3 Likes