You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've find out the problem! PrettyPrinter crushes ONLY if there is encoding="windows-1251" - no matter which encoding is really used, which alphabet is used and which part of document is selected! 😃
I think it's still a bug and it should be fixed 😌 Just ingore encoding= in <?xml ... ?> and everybody will be happy! 😎
The parsing is done by libxml, which is fully standards compliant, so its not possible to make it ignore encoding thats written in the xml passed to it AFAICT. The plugin will need to convert the UTF-8 buffer to the specified encoding, after parsing the xml with libxml to find what it is ... oh :)
Example file: cyrillic_example.xml.txt
Content:
Example 2:
![geany_error-2](https://user-images.githubusercontent.com/31248040/89198064-4b755900-d5b5-11ea-9acd-6e2287f659e9.png)
![example-2_content](https://user-images.githubusercontent.com/31248040/89198204-85465f80-d5b5-11ea-8ebf-1a25dc1b747a.png)
cyrillic_example2.xml.txt
The text was updated successfully, but these errors were encountered: