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

<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.
AbhinavYa1Accepted 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.

 

4 replies

kautuk_sahni
Employee
March 4, 2025

@abhinavya1 Could you please share more context as asked?

Translate
Kautuk Sahni
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?

Translate
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.

 

Translate
giuseppebaglio
Level 10
February 14, 2025

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

Translate