Re: [GENERAL] octet_length operator: what encoding?

2012-03-30 Thread Albe Laurenz
Chris Angelico wrote: We have a number of varchar fields and I'm looking to see what the greatest data length in any is, after UTF-8 encoding. The two-argument length function appears (I think) to take a byte array, so it's the opposite of what I'm looking for (give it a UTF-8 encoded string

[GENERAL] octet_length operator: what encoding?

2012-03-29 Thread Chris Angelico
We have a number of varchar fields and I'm looking to see what the greatest data length in any is, after UTF-8 encoding. The two-argument length function appears (I think) to take a byte array, so it's the opposite of what I'm looking for (give it a UTF-8 encoded string and the second parameter