I have an old web application (not maintained anymore) of which a small part is still needed; this is displayed in iframes.
Unfortunately, the old application uses
ISO-8859-1 encoding (which it doesn't declare; it simply sends
Content-Type: text/html), while the new one (of course) uses
UTF-8. Thus, since the encoding of the iframe contents is not specified,
UTF-8 is expected, and thus several characters look wrong.
The VirtualHost of the old application does some rewriting to a JBoss application:
RewriteRule ^/(.*) http://localhost:9080/$1 [L,P]
I'm able to edit this
VirtualHost (while nobody will touch the application itself anymore); how would I add the encoding information?
E.g., for all contents with a textual content type which lack encoding information (naked
Content-Type: text/html), append
; charset: ISO-8859-1.
Any simple code snippet? Thank you!