Ok. So I have some progress here but still stuck. Here is what I have found out.
If you want your email encoded with some special characters you also need to set it per user and globally.
For Serbian and other languages in SEE/CEE one should use 8595-2.
And now I can send emails with special characters:
It is being received like it should:
So I have set up global charset to be used when sending emails by adding this line in the config_override.php:
$sugar_config[‘default_email_charset’] = ‘ISO-8859-2’;
And I was expacting to finally have workflow based automated emails sent with special characters like it should…
Now it encounters fatal error when email is being sent using email template.
It turns out to encode this special characters into hex and trying to insert it into db with out success.
(download this image to see it full size)
ERROR: An error occurred translating the query string to UTF-16: No mapping for the Unicode character exists in the target multi-byte code page.
No email is being logged in the database.
But email is being received with some encoding mistakes:
I will definitely wait for the next version and will test again but it sims to be some very specific problem here related only to email templates engine.
It is php 7.1 and it is using sqlsrv for MSSQL.
Ok, great diagnosis. Make sure you open an issue with this stuff if the new release doesn’t fix things for you. I don’t want to sound pessimistic, but I don’t think it will - I’ve been looking at the email fixes included and I don’t think this particular issue was addressed.