Sicos1977 / MSGReader

C# Outlook MSG file reader without the need for Outlook
http://sicos1977.github.io/MSGReader
MIT License
490 stars 168 forks source link

.msg to html transformation returns broken text #317

Closed tariqgitspace closed 1 year ago

tariqgitspace commented 1 year ago

Describe the bug https://github.com/Sicos1977/MSGReader/issues/315 partially fixed broken text issue. Latest email in the chain is still broken sometimes for Japanese and Korean text

To Reproduce Steps to reproduce the behavior:

  1. Perform msg to Html transformation with Japanese or Korean text.
  2. Latest email in the chain will contain garbled text.
  3. Test file shared over email.

Expected behavior text should not be garbled in html generated from .msg.

Screenshots Shared over email

Desktop (please complete the following information): OS - Windows 11 Browser - Edge,Chrome Version- All

Smartphone (please complete the following information): Device: N/A OS - N/A Browser- N/A Version - N/A

Additional context Add any other context about the problem here.

jpatel1002 commented 1 year ago

Hello, just wandering if someone take a look at this issue soon, we would really appreciate it. Thanks

Sicos1977 commented 1 year ago

That someone is just me, please keep in mind that this is an open source project that I do in my free time.

Sicos1977 commented 1 year ago

I already looked into it if I can find a solution that works every time. The problem is that the RTF has mixed languages (US and JP) and I have to figure out how to handle that. When something is in US format then it is a 1 byte charset and JP is a 2 byte one. So there are different ways how to decode the chars that are needed.

I already looked into the RTF specifications about how to do this but there is not much information in there so I need to figure out something myself

Sicos1977 commented 1 year ago

Try the latest nuget version and see if it solves the problem/