When the site was running on PHP version 7.4.27 the polish characters were not displaying correctly as shown below
Wspomóż Misjonarzy Werbistów!enter code here
Twoja ofiara pomoże naszym kapÅanom i braciom zakonnym gÅosiÄ EwangeliÄ w najdalszych zakÄtkach Åwiata.
But when downgraded the PHP version to 7.4.25 the polish characters were displaying as expected
Wspomóż Misjonarzy Werbistów!
Twoja ofiara pomoże naszym kapłanom i braciom zakonnym głosić Ewangelię w najdalszych zakątkach świata.
Fixed bug #81518 (Header injection via default_mimetype / default_charset)
A fixed bug that I found while reviewing over the changeLogs of PHP. Could this be a potential reason for the problem?
I would like to know what could be the possible cause of this issue in these different version of PHP and if there is any potential fix for this.