Sitemap | UTF-8 Encoding Tag is not showing in index file | Community
Skip to main content
New Member
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

giuseppebaglio
Level 10
February 14, 2025

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

chaudharynick
Level 4
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 Member
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.

 

kautuk_sahni
Community Manager
Community Manager
March 4, 2025

@abhinavya1 Could you please share more context as asked?

Kautuk Sahni