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
Why do you care at all? Both mean exactly the same thing.
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?
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.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156