[keycloak-user] Email internationalization

Stian Thorgersen sthorger at redhat.com
Mon Jun 6 13:38:59 EDT 2016


Please create a JIRA. If you want to submit a PR that would be welcome as
well.

On 6 June 2016 at 14:12, Nekrasov Aleksandr <a.nekrasov at ftc.ru> wrote:

> Hello everyone.
>
> I found a bug when trying to send email from keycloak to users with
> encoding against English.
>
> For example, when I try to send Russian message with subject “Обновите
> вашу учётную запись” I see “????????????? ?????? ??????????? ?????” in my
> email.
>
>
>
> I think you should update org.keycloak.email.DefaultEmailSenderProvider
> class with line
>
> msg.setSubject(subject);
>
> to
>
> msg.setSubject(MimeUtility.*encodeText*(subject, *"utf-8"*, *"B"*));
>
>
>
> Thanks.
>
>
>
> Nekrasov Aleksander,
>
> Developer,
>
> Center of Financial Techologies
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20160606/21c2041b/attachment.html 


More information about the keycloak-user mailing list