Skip to content

Problem with eml reader #4

@darakeon

Description

@darakeon

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions