<div dir="ltr">Please create a JIRA. If you want to submit a PR that would be welcome as well.</div><div class="gmail_extra"><br><div class="gmail_quote">On 6 June 2016 at 14:12, Nekrasov Aleksandr <span dir="ltr">&lt;<a href="mailto:a.nekrasov@ftc.ru" target="_blank">a.nekrasov@ftc.ru</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="RU" link="#0563C1" vlink="#954F72">
<div>
<p class="MsoNormal"><span lang="EN-US">Hello everyone.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I found a bug when trying to send email from keycloak to users with encoding against English.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">For example, when I try to send Russian message with subject “Обновите вашу учётную запись” I see “????????????? ?????? ??????????? ?????” in my email.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">I think you should update org.keycloak.email.DefaultEmailSenderProvider class with line<u></u><u></u></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">msg.setSubject(subject);<u></u><u></u></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">to<u></u><u></u></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">msg.setSubject(MimeUtility.<i>encodeText</i>(subject,
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:green">&quot;utf-8&quot;</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">,
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:green">&quot;B&quot;</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">));<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Nekrasov Aleksander,
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Developer,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Center of Financial Techologies</span><span lang="EN-US"><u></u><u></u></span></p>
</div>
</div>

<br>_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br></blockquote></div><br></div>