Skip to main content
New Member
Feb 14, 2025 9:25 AM UTC
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 Member
Mar 12, 2025 8:16 AM UTC

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

giuseppebaglio
Level 10
Feb 14, 2025 1:54 PM UTC

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

Translate
chaudharynick
Adobe Champion
Adobe Champion
Feb 14, 2025 7:36 PM UTC

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 Member
Mar 12, 2025 8:16 AM UTC

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
kautuk_sahni
Level 9
Mar 4, 2025 12:50 PM UTC

@abhinavya1 Could you please share more context as asked?

Translate
Kautuk Sahni