From: Matthias T. <th...@ei...> - 2002-08-08 18:05:53
|
Hello agtk developers, I have just stumbled over a non-ASCII label which I added as a feature value to an annotation graph via the tcl wrapper, and saved the resulting AGSet in AIF Format. When trying to read that file back, I get an error message like: loading agset from file Test.xml...agf:Expected end of tag 'Feature' Error in startup script: LoadErroragf:Expected end of tag 'Feature' while executing "AG::load "AIF" $agSetFileName" I checked the XML file, and apparently the characters are saved 'as-is', which was the source of the error. I had a similar problem in a different matter, and solved it by storing the data as UTF-8. That meant converting all strings read to and from the XML document via the parser, using helper functions like "iso2utf8 and utf82iso". Is that something the AG Library user has to take care of, or should that be implemented in the library itself? Regards. Matthias |