#209 XML tools displays Chinese output when evaluating functions

open
nobody
None
5
2012-10-16
2012-10-16
Anonymous
No

The xpath: /root/node[condition]

works as expected, however:

The xpath normalize-space(root/node[condition])

always results in Chinese characters.

Interestingly, this applies for some functions I try to apply (substring-before, substring-after, normalize=space), but not all. The 'count' function works as expected.

This leads me to believe this might be some sort of encoding bug, but I'd just be guessing.

Discussion

  • Etienne Tasse
    Etienne Tasse
    2013-02-18

    Anything that would return a string fails:
    > string('hello') -> {glyph}{glyph}o
    > /a/text() for xml "<a>hello</a> -> (i) 3