neyestrabelli / xml-formatter

Simple XML Formatter for Atom
MIT License
22 stars 7 forks source link

xml-formatter ignores encoding attribute specified in XML declaration #28

Closed kowalcj0 closed 8 years ago

kowalcj0 commented 8 years ago

For example when you indent this example XML:

<?xml version="1.0" encoding="Windows-1252"?><service></service>

you'll end-up with a UTF-8 document

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

Surely this is not the same file as the original one :)

ps. I think this is partially related to a closed issue #14

Cheers

neyestrabelli commented 8 years ago

Hi @kowalcj0 you can disable UTF-8 header in settings.