I use pChart to generate images in a controller action.
This works fine until I call Yii::t somewhere in the action. Doing that causes the response body to start with { 0xEF, 0xBB, 0xBF, 0x89 } instead of "PNG".
From what I’ve gathered so far, the hex code is the UTF BOM. Considering that my response is an image, it’s not exactly needed.
Any idea on how I can change that behaviour?