Robert Haas <robertmhaas@gmail.com> writes:
> - Why does the second byte need special handling for 0xED and 0xF4?
http://www.faqs.org/rfcs/rfc3629.html
See section 4 in particular. The underlying requirement is to disallow
multiple representations of the same Unicode code point.
regards, tom lane