On Thursday 22 January 2009 15:39:00 Sergey Burladyan wrote:
> seb=# select xpath('/русский/text()', v::xml) from (select
> xml('<русский>язык</русский>')) as x(v);
> ERROR: could not parse XML data
> DETAIL: Entity: line 1: parser error : Input is not proper UTF-8, indicate
> encoding !
> Bytes: 0xF0 0xF3 0xF1 0xF1
> <x><русский>язык</русский></x>
> ^
This raises the question: What are the rules about encoding the characters in
XPath expressions themselves? I haven't found anything about that in the
standard. Anyone know?