in TYPO3 12 config.metaCharset is removed so there is no easy possibility anymore to encode the output of a TYPO3 site to iso-8859-1. Breaking #97065 tells me that i should use a custom middleware to encode the output on my own. I am familiar with middleware in in other topics, but i don`t know how to solve exactly this problem.
With return new HtmlResponse($content); it should be possible to return the encoded content to the world, but how do i get the whole content of an aktual page in a middleware?
Or is there a other possibility?
Any help appreciated!