Strings Report post Posted November 7, 2005 Currently notepad.c is using xmlParseFile() to read in the XML file. doc = xmlParseFile (file); shouldn't that in fact be using doc = xmlReadFile (file, "UTF-8", 0); Share this post Link to post Share on other sites
crusadingknight Report post Posted November 7, 2005 Currently notepad.c is using xmlParseFile() to read in the XML file. doc = xmlParseFile (file); shouldn't that in fact be using doc = xmlReadFile (file, "UTF-8", 0); Yeah, it'd help to be able to take localised notes... still, there needs to be a whole new text editor widget written before the notepad is even usable. (My bad. ) Share this post Link to post Share on other sites
Wytter Report post Posted November 7, 2005 (edited) Doesn't have to be a widget - how many times will we need to use a text editor widget? Just needs to work... Edited November 7, 2005 by Wytter Share this post Link to post Share on other sites
crusadingknight Report post Posted November 8, 2005 Doesn't have to be a widget - how many times will we need to use a text editor widget? Just needs to work... Not necessarily a reusable widget as such... but using the current text_field, which is only intended for small sections of text will not work, nor will optimizing text_field (as text_field is currently not so much text, as chat window, and one-line text processing.) Just an actual text widget, without the channel stuff, etc, could be used in the Config. Window, Notepad window, and other misc. places, since our current "text field" is actually optimized for chat. Share this post Link to post Share on other sites
Lachesis Report post Posted November 11, 2005 xmlParseFile() assumes UTf-8 if no encoding is specified in the XML file, sorry but I can't see any benefit in xmlReadFile(), it's fine to use either. Share this post Link to post Share on other sites
Strings Report post Posted November 11, 2005 xmlParseFile() assumes UTf-8 if no encoding is specified in the XML file, sorry but I can't see any benefit in xmlReadFile(), it's fine to use either. If I could suggest you look at the documentation for the two functions xmlParseCatalogFile xmlSAXParseFileWithData I hope that the difference between the two functions becomes more clear, and you understand my suggestion. Share this post Link to post Share on other sites
Lachesis Report post Posted November 11, 2005 Sorry, I have no idea :-( Does one maybe use parsing callbacks instead of building a tree? Share this post Link to post Share on other sites