Skip to main content
Luwi
Gold ⭐️
Oct 19, 2020 6:07 PM UTC
Solved

NiFi PutEmail sends an email with non utf-8 body text

Hello,

 

I want to send and email using PutEmail with czech characters in email html body. I used UTF-8 charset, but it does not work, I'm keep getting emails with question marks instead of correct czech special characters. But subject text shows characters correctly.

 

When checking data provenance, everything is ok.

Can you please help me with processor configuration? What am I doing wrong?

Screenshots of my setup below.

 

Thanks a lot

Rgds

Ludvik

 

Luwi_0-1603130449555.png

I'm getting message text in incorrect charset

 

 

Luwi_1-1603130508363.png

Luwi_2-1603130547871.png

 

 

Luwi
LuwiAnswer
Gold ⭐️
Oct 20, 2020 1:03 PM UTC

ok, just figured it out. In the "content type" property of PutEmail, there must be charset defined as well, just like this: text/html;charset=utf-8

1 reply

Luwi
LuwiAuthorAnswer
Gold ⭐️
Oct 20, 2020 1:03 PM UTC

ok, just figured it out. In the "content type" property of PutEmail, there must be charset defined as well, just like this: text/html;charset=utf-8

Translate