Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with eml reader #4

Open
darakeon opened this issue Sep 8, 2021 · 0 comments
Open

Problem with eml reader #4

darakeon opened this issue Sep 8, 2021 · 0 comments

Comments

@darakeon
Copy link
Owner

darakeon commented Sep 8, 2021

Some characters, at plain text and html formats, shows like "=E2=80=99" when should be "’".

  • Find by regex pattern ((?:=[0-9A-Z]{2}){3})
  • Replace with this code:
    var fromText = "=E2=80=99";
    var bytes = fromText.Substring(1)
      .Split("=")
      .Select(c => Convert.ToByte(c, 16))
      .ToArray();

    var sign = Encoding.UTF8.GetString(bytes);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant