Closed zeOxx closed 1 year ago
I did what you said but the outcome look fine to me
There are apparently some nuances to this... I also tried the same text and it works fine, so that was apprently a bad example by me. Apologies.
I did get it to happen again though, this time with the name of a colleague of mine. I wrote it out on three different lines, and both lines using Arial has jumbled the special characters
This is the HTML it spits out:
<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif"><b><span style="color:black">Rolf
Løvås</span></b></p>
<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif"><b><span style="font-family:Arial,sans-serif;color:black">Rolf Lvøås</span></b></p>
<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif"><b><span style="font-size:12pt;font-family:Arial,sans-serif;color:rgb(117,117,117)">ROLF LVØÅS</span></b></p></div>
</div></div>
As you can see, the lines using Arial jumbles the special characters, while the one using Calibri doesn't. This is done using the latest nuget package, 4.4.11, reading the contents via Storage.Message through a MemoryStream.
EDIT: I should also note that, as before, the other body properties display the text correctly. This only occurs within BodyHTML
Get the latest version from nuget
Describe the bug Text styled with Arial can show Norwegian characters out of order. This only happens for the BodyHTML property, the other body properties display the characters in their correct order.
Examples: Text from outlook using three different fonts, with Arial in the middle: Parsed text from msgviewer: As you can see the "å" here gets moved from where it originally was. Here's the HTML from outlook for good measure, which has the characters in their original positions:
You can also see that it sometimes doesn't move the characters for some reason
To Reproduce Steps to reproduce the behavior: Compose an email with any text that contains the characters æ, ø, å. Example text used above:
The fånt for this text is Arial, which dæsn’t wørk fine
and choose the Arial font