• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question Nginx not use charset UTF-8 for xml...?

Azurel

Silver Pleskian
Server operating system version
AlmaLinux 8.8 (Sapphire Caracal)
Plesk version and microupdate number
Plesk Obsidian Version 18.0.53 Update #2
I verified a XML file with w3.org and get back:
This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.
Your feed appears to be encoded as "UTF-8", but your server is reporting "US-ASCII"

XML files are served by nginx and not in utf-8? What with Javascript? How I can change that in plesk?
 
That's something you define in your XML file. Like:

XML:
<?xml version = "1.0" encoding = "UTF-8" standalone = "no" ?>
 
This is what the line says. In the file utf8 is specified (with encoding="UTF-8"), but the XML-file is sent as charset US-ASCII.
 
Content-Encoding: br
Content-Type: text/xml
Date: Wed, 19 Jul 2023 08:24:21 GMT
Etag: W/"64b6f061-6009"
Last-Modified: Tue, 18 Jul 2023 20:04:49 GMT
Server: nginx
Vary: Accept-Encoding

another servers response here with
Content-Type: application/xml; charset=UTF-8
 
So, you need to fix the Content-Type header. You can use something like AddCharset UTF-8 .xml in Apache config (e.g. in .htaccess) if you have Apache behind nginx or charset utf-8; in nginx configs.
 
Not all documents in the world are in UTF-8, so forcing that on web server level by default is risky.
 
Back
Top