On lör, 2011-07-23 at 17:49 +0200, Florian Pflug wrote:
> The current thread about JSON and the ensuing discussion about the
> XML types' behaviour in non-UTF8 databases made me try out how well
> XPATH() copes with that situation. The code, at least, looks
> suspicious - XPATH neither verifies that the server encoding is UTF-8,
> not does it pass the server encoding on to libxml's xpath functions.
This issue is on the Todo list, and there are some archive links there.