Sitemap | UTF-8 Encoding Tag is not showing in index file | Community
Skip to main content
New Participant
February 14, 2025
Solved

Sitemap | UTF-8 Encoding Tag is not showing in index file

  • February 14, 2025
  • 3 replies
  • 686 views
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

   <sitemap>

      <loc>http://www.example.com/sitemap1.xml.gz</loc>

      <lastmod>2004-10-01T18:23:17+00:00</lastmod>

   </sitemap>

   <sitemap>

      <loc>http://www.example.com/sitemap2.xml.gz</loc>

      <lastmod>2005-01-01</lastmod>

   </sitemap>

</sitemapindex>

I am generating a sitemap but 

<?xml version="1.0" encoding="UTF-8"?>

Is not showing , what could be the issue and how to fix this?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by AbhinavYa1

Thanks for your quick response.
I am using OOTB sitemap which AEM Cloud provides and this issue is resolved now , as few browser hide this specific tag  <?xml version="1.0" encoding="UTF-8"?> but in network response I am able to see that generated sitemap is encoded with UTF-8.

 

3 replies

kautuk_sahni
Employee
March 4, 2025

@abhinavya1 Could you please share more context as asked?

Kautuk Sahni
chaudharynick
New Participant
February 14, 2025

Hi @abhinavya1 

 

Can you share which AEM version are you using and how are you generating the sitemap, custom or OOTB functionality?

AbhinavYa1AuthorAccepted solution
New Participant
March 12, 2025

Thanks for your quick response.
I am using OOTB sitemap which AEM Cloud provides and this issue is resolved now , as few browser hide this specific tag  <?xml version="1.0" encoding="UTF-8"?> but in network response I am able to see that generated sitemap is encoded with UTF-8.

 

giuseppebaglio
New Participant
February 14, 2025

Please provide more information because it's impossible to guess how you create the sitemap.