Email templates addon does not work properly with cyrillic

Hello Jmix team,

I started using the email templates add-on and I found that it does not work properly with cyrillic characters.

I’m defining the following template:

<div id="i3uc-2-2-2-2-2" style="box-sizing: border-box; padding: 10px;">
  <p id="is60e-2-2-2-2" style="box-sizing: border-box; text-align: center;">
    <strong id="i5jwb-2-2-2-2" style="box-sizing: border-box;">
        <span id="ij1x4-2-2-2-2" style="box-sizing: border-box; font-size: 48px;">Жалба</span>
    <br id="i9nhl-2-2-2-2" style="box-sizing: border-box;">​​​​​​​(СИГНАЛ)
<table id="ibprt-2-2-2" class="list-item" style="box-sizing: border-box;">
  <tbody id="il4t4-2-2-2" style="box-sizing: border-box;">
    <tr id="ilsnk-2-2-2" style="box-sizing: border-box;">
      <td id="ic7cd-2-2-2" class="list-item-cell" style="box-sizing: border-box;">
        <table id="ihi8k-2-2-2" class="list-item-content" style="box-sizing: border-box;">
          <tbody id="iftpi-2-2-2" style="box-sizing: border-box;">
            <tr id="iudj1-2-2-2" class="list-item-row" style="box-sizing: border-box;">
              <td id="ijwbp-2-2-2" class="list-cell-left" style="box-sizing: border-box;">
              <td id="i04vz-2-2-2" class="list-cell-right" style="box-sizing: border-box;">
                <h1 id="ibnxb-2-2-2" class="card-title" style="box-sizing: border-box;">Данни за лицето
                <p id="ih5bd-2-2-2" class="card-text" style="box-sizing: border-box;">Име Фамилия* ${user.firstName} ${user.lastName}

Email is received and looks like this:

My investigation led me to io.jmix.emailtemplates.impl.EmailTemplatesImpl#generateEmailInfoWithoutAttachments


Seems like the problem is located here:

The OutputStreamWriter is being created using the default character set of the virtual machine, in my case windows-1252. I had to override this method in order to create the stream writer with the UTF-8 charset.

Do you guys plan on changing this or is it implemented this way with purpose?

Hi, thank you for contacting us. A ticket has been created for your question.