Re: BUG #4622: xpath only work in utf-8 server encoding

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-bugs(at)postgresql(dot)org
Cc: "Sergey Burladyan" <eshkinkot(at)gmail(dot)com>
Subject: Re: BUG #4622: xpath only work in utf-8 server encoding
Date: 2009-01-22 21:58:49
Message-ID: 200901222358.50489.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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?

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 2009-01-22 22:58:26 Re: [BUGS] Status of issue 4593
Previous Message Sergey Burladyan 2009-01-22 13:39:00 BUG #4622: xpath only work in utf-8 server encoding