#30027

It is not about charset / character encoding.

Your webapp should send “Content-type: application/pdf” with HTTP response.

PD4ML taglib implicitly sets the correct HTTP header. (Do you use PD4ML taglib?)
It your case it seems to be overridden with “Content-type: text/plain“.