From: Nick H. <nic...@ho...> - 2014-02-09 19:02:50
|
The default encoding is utf-8. http://www.w3schools.com/XML/xml_encoding.asp So it isn't a bug, but it might still be a good idea to include it. Nick. On 09/02/14 18:53, Paul Franklin wrote: > As an English speaker I don't have as deep a knowledge of > character encoding as some of you, but I happened to notice > that our "style" files have a different XML heading line > than other files we create, one with no encoding. > > For instance .gramps/recent-files-gramps.xml and > .gramps/report_options.xml and .gramps/books.xml and > .gramps/tool_options.xml all start with > > <?xml version="1.0" encoding="utf-8"?> > > whereas style files (such as .gramps/descend_chart.xml or > .gramps/descend_report.xml or .gramps/summary.xml) all have > > <?xml version="1.0"?> > > with no special encoding qualifier. > > So I'm wondering if that isn't a bug, since users can name > their own styles to be whatever they want, presumably with > whatever letters they want? > > In fact, when I do a recursive grep for "xml version" the > only place which doesn't require UTF-8 encoding is > gen/plug/docgen/stylesheet.py -- so I suspect it's a bug. > But I wanted to double-check with you before I fix it. |