Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESC: accepts own xml-files only in UTF-16 #2

Open
GoogleCodeExporter opened this issue Mar 19, 2015 · 5 comments
Open

ESC: accepts own xml-files only in UTF-16 #2

GoogleCodeExporter opened this issue Mar 19, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link
Contributor

Юникодная версия плагина принимает 
конфигурационные xml-файлы только в 
юникоде.

В некоторых случаях это может быть 
неудобно. 
Например приходится поддерживать 2 набора 
настроек (неюникодные для Far 
1.75)

Как правило в XML допустимо указывать 
кодировку:
<?xml version="1.0" encoding="UTF-8" ?>
(http://en.wikipedia.org/wiki/XML)

Предполагаю что если обработка XML в плагине 
идёт с помощью системных 
функций, то реализовать разных кодировок 
не должно быть сложно.
(это гипотеза - прошу больно не пинать)

Original issue reported on code.google.com by [email protected] on 4 Jun 2009 at 9:14

@VictorVG
Copy link

Подобная проблема уже вылезала в ином проекте - Process Hacker (слетали настройки если хоть одно значение было не в Latin-1 записано). Кончилось всё основательной переделкой РН и плагинов. А спецификации XML надо не в вики, а на W3C.org смотреть ибо там первоисточник, а при пересказе возможны искажения смысла.

@zippy1981
Copy link

Discovered this on my own. I don't speak Russian, but google translate indicates that this became apparant in ProcessHacker. Do you refer to this project @VictorVG http://processhacker.sourceforge.net/

Regardless, is there an english commentary as to why this exists?

@VictorVG
Copy link

Ok! Just see my resolved bug-report [Resolved]:: PerfMonPlugin - problem with non-Latin names Settings as samples on some problem then programs partially supported UNICODE and configuration value using not-Latin character's (old version Process Hacker before v2.36 read/save file "settings.xml" as ANSI).

@zippy1981
Copy link

@VictorVG So if I understand correctly the solution is to set the BOM, and the encoding correctly in the <?xml header and then you can encode any way you like?

@VictorVG
Copy link

Update solution don't needed, just convert XML up to UTF-8 included BOM signature - Far automatically detected and correctly displayed UTF-8 files have BOM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants