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.

Hello! i have a little problem with encoding in mailslurper… For example, in the subject, when there’s a special character in subject (á, é, í, ó, ú) shows: =?UTF-8?Q?Title with special character

The same problem in mail body… when there’s a special character, and mail “contentType”:"text/plain; charset=windows-1252 But when mail is “contentType”:“multipart/alternative” everything is ok with encoding…

The same mail is showing fine in webmail or others email clients.

Issue Analytics

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

github_iconTop GitHub Comments

4reactions
brovadercommented, Mar 14, 2018

Hi! thanks for fix this issue! In subjects the problem with encoding was fixed, but not in the mail body…

2reactions
gbasocommented, Apr 17, 2018

@adampresley I confirm that encoding is still broken in the mail body.

Carissimi

<p>Parco Sempione verde e marrone dentro la mia citt=C3=A0:</p>

<dl>
          <dt><br><a href=3D"http://localhost:3000/api/store/document/1615/=
0/notify-download?h=blablabla">prova_link</a></dt>
       <dd><br>description</dd>
</dl>

<p>Cordiali Saluti</p>

<img src=3D"https://sites.google.com/a/example.it/loghi-pubblici/home/logo.jpg"=
 style=3D"width:124px; height:57px;" />
<br>_________________________<br>
<i>This email was automatically generated from a send only email address, p=
lease do not reply</i></p>

becomes

Carissimi

<p>Parco Sempione verde e marrone dentro la mia citt=C3=A0:</p>

<dl>
          <dt><br>prova_link</dt>
       <dd><br>decription</dd>
</dl>

<p>Cordiali Saluti</p>

<img style="3D&#34;width:124px;"/>
<br>_________________________<br>
<i>This email was automatically generated from a send only email address, p=
lease do not reply</i></p>

Both links get destroyed, the =C3=A0 character is displayed as =C3=A0 instead of à, and the “please” at the end is shown as is as well. The problem goes away when removing the à from the message.

My content type is “text/html; charset=UTF-8”, working on linux mint 18.3.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is UTF-8 Encoding? A Guide for Non-Programmers
UTF-8 is an encoding system for Unicode. It can translate any Unicode character to a matching unique binary string, and can also translate...
Read more >
UTF-8 - Wikipedia
UTF-8 is a variable-length character encoding used for electronic communication. Defined by the Unicode Standard, the name is derived from Unicode (or ...
Read more >
HTML Unicode (UTF-8) Reference - W3Schools
Unicode is a character set. UTF-8 is encoding. Unicode is a list of characters with unique decimal numbers (code points). A = 65,...
Read more >
Encoding.UTF8 Property (System.Text) - Microsoft Learn
This property returns a UTF8Encoding object that encodes Unicode (UTF-16-encoded) characters into a sequence of one to four bytes per character, and that ......
Read more >
What is UTF-8? UTF-8 Character Encoding Tutorial
UTF-8 is a character encoding system. It lets you represent characters as ASCII text, while still allowing for international characters, ...
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