rpegues(at)tripwire(dot)com writes:
> We have a table with an update trigger where if you modify a certain column,
> we change the name of the row by calling a function.
> In the function, substring() the name and then add a random string to that.
> However, the substring appears to cut a unicode character in half, and the
> update trigger then updates the name with the broken string.
That should not happen if Postgres knows it's dealing with unicode data.
What have you got the database's encoding set to?
regards, tom lane