Note that evaluate() will use the same encoding as the XML document.
So if you have a UTF-16 XML, you will have to query using UTF-16 strings.
You can use iconv() to convert from your code's encoding to the target encoding for better legibility.
Note that evaluate() will use the same encoding as the XML document.
So if you have a UTF-16 XML, you will have to query using UTF-16 strings.
You can use iconv() to convert from your code's encoding to the target encoding for better legibility.