Support Questions

Find answers, ask questions, and share your expertise

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

avatar
Contributor

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

 

 

1 ACCEPTED SOLUTION

avatar
Contributor

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

View solution in original post

1 REPLY 1

avatar
Contributor

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