web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)
Answered

XML encoding format

(0) ShareShare
ReportReport
Posted on by 12

Hi,

I have an issue that is, i have generated a xml file. Now when we open the xml through browser we are getting encoding as "UTF-8"(Upper case) whereas if we open the same xml using notepad++ we are getting encoding as "utf-8"(Lower case) as shown below,

when opened in IE

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

when opened with Notepad++

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

we need to print encoding in uppercase in notepad as well as it is printing in IE.

For generating Xml file we have used Xml Stylesheet as- 

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

<xsl:stylesheet><xsl:output method="xml" encoding="UTF-8" />

How can we achieve it?

Thanks in Advance.

Usman

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    239,029 Most Valuable Professional on at

    You're confusing visualization with the actual file content. Press Ctrl+U in the Internet Explorer to see the source code - it's indeed in lowercase; the browser merely displays it differently.

  • Usman Khan Profile Picture
    12 on at

    Thanks for the reply,

    So how can we get encoding display in upper case for notepad,  i tried by using the encoding as "UTF-8"(upper case <xsl:stylesheet><xsl:output method="xml" encoding="UTF-8" />) in style sheet, but still i am getting encoding in lower case?

  • Martin Dráb Profile Picture
    239,029 Most Valuable Professional on at

    Why do you care at all? Both mean exactly the same thing.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
Henrik Nordlöf Profile Picture

Henrik Nordlöf 2 User Group Leader

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans