Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp> writes:
> Note that EUC_TW or any multibyte encodings that are allowed for
> backend side, do not contain such ASCII special characters as "|" and
> should be safe for the parser and the regexp routines.
But the point is that a pg_wchar is being squeezed down to a char.
PEEK() produces a pg_wchar, no?
regards, tom lane