Can nginx re-encode XML documents, or alter XML headers?
问题 I have a problem ultimately caused by a third party XML document whose actual encoding (ISO 8859-1 or Windows 1252, can't tell) doesn't match its declared encoding (UTF-8). I'm looking for creative workarounds. We already use nginx proxies for various content, so perhaps there is a way to either: Re-encode the document contents on the fly from ISO 8859-1 to UTF-8; or Alter the document header on the fly, from UTF-8 to ISO 8859-1. Are either of these possible with nginx? If not, a similar tool