Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

XML encoding format

Posted on by 10

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

  • Martin Dráb Profile Picture
    Martin Dráb 230,188 Most Valuable Professional on at
    RE: XML encoding format

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

  • Usman Khan Profile Picture
    Usman Khan 10 on at
    RE: XML encoding format

    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?

  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,188 Most Valuable Professional on at
    RE: XML encoding format

    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.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans