Alvaro Herrera wrote:
- - wrote:

1) Functions like char_length() or length() do NOT return the number
of characters (the manual says they do), instead they return the
number of code points.

I think you have client_encoding misconfigured.

alvherre=# select length('รก'::text);
length --------
      1
(1 fila)



Umm, but isn't that because your encoding is using one code point?

See the OP's explanation w.r.t. canonical equivalence.

This isn't about the number of bytes, but about whether or not we should count characters encoded as two or more combined code points as a single char or not.

cheers

andrew



--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to