Encodings with Umlauts generate FormatException in DomDocument
See original GitHub issueHi 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:
- Created 7 years ago
- Comments:5 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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 😃
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?