alek-sys / sublimetext_indentxml

Plugin for Sublime Text editor for reindenting XML and JSON files
MIT License
534 stars 136 forks source link

ValueError: multi-byte encodings are not supported #104

Open novNorthSea opened 7 years ago

novNorthSea commented 7 years ago

For files that begin with \<?xml version="1.0" encoding="gb2312"?> the plugin gives the wrong message "ValueError: multi-byte encodings are not supported". This can be solved by replacing "gb2312" with "utf-8". Can this be solved automatically?

alek-sys commented 7 years ago

Can you attach a sample file please? Ideally as archive or something to keep original file encoding.