question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Encodings with Umlauts generate FormatException in DomDocument

See original GitHub issue

Hi and thanks for this great library. I’m currently having problems with german msg-files. There seems to be an issue in https://github.com/Sicos1977/MSGReader/blob/master/MsgReader/Rtf/DomDocument.cs#L3345

(Rtf/DomDocuments.cs, line 3345). The hexBuffer is empty at this point, and therefore byte.Parse throws an exception. reader.CurrentToken.Hex however contains 0xFC (a german Umlaut in 1252 encoding: ‘ü’). If I add if (hexBuffer == string.Empty) hexBuffer = reader.CurrentToken.Hex; The code works, but the font-size changes at the Umlauts position.

Please see this testmail: link removed

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Sicos1977commented, Jan 18, 2017

Not that I know… but since I don’t have a complete testing farm like Microsoft has, there could be a bug here or there. But you can always file a bug report here on GitHub so that I can try to fix it 😃

0reactions
reberinformatikcommented, Jan 18, 2017

Thanks for fixing the issue! I’m trying to use the MailViewer in a Citrix environment where no Outlook is installed. There are mail-messages stored in a DMS which are retrieved by my application. A double click should start the MailViewer component and display a preview of the mail.

Just wondering: Are there any known limitations/issues or format-problems?

Read more comments on GitHub >

github_iconTop Results From Across the Web

why does DOMDocument turn UTF-8 encoded umlauts into ...
If I output the string before adding it as a text node to the DOMDocument tree then I can see that the original...
Read more >
Reading an Outlook MSG File in C# - CodeProject
At my work, I needed something to read Outlook MSG and EML files . After searching on the internet, I found a nice...
Read more >
DOMDocument::__construct - Manual
Be aware using the encoding parameter in the constructor. It does not mean that all data is automatically encoded for you in the...
Read more >
https://huggingface.co/jeniya/BERTOverflow/commit/...
... +##Doc +Ide +communication +Store +Script +##astic +Foo +turns +registered +##oles +smart +##Changed +encode +Tomcat +destroy +##anges +##lers +##Create ...
Read more >
locale Python 3.5官方教程 _w3cschool
Returns the current setting for the given locale category as sequence containing language code, encoding. category may be one of the LC_* values...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found