Re: Field size for UTF-8 characters

2007-07-03 Thread Kenji HIROHAMA
I believe varchar(50) means 50 characters, not 50 bytes. So, usually I don't care when designing table schema at all, for Japanese characters. On 7/3/07, Cathy Murphy <[EMAIL PROTECTED]> wrote: I am limiting text to 50 chars in mysql field by varchar(50) ( UTF-8 enabled) but what if the user ent

Re: Field size for UTF-8 characters

2007-07-03 Thread Ben Clewett
From my experience with InnoDB, IF the field is an index, it will use 3 bytes per character. So VARCHAR(50) = 150 bytes, when fully populated. (+ 1 for the length = 151 bytes.) IF the field is not an index, each character will consume between 1 and 3 chars. So VARCHAR(50) = 51 -> 151 char

Field size for UTF-8 characters

2007-07-02 Thread Cathy Murphy
I am limiting text to 50 chars in mysql field by varchar(50) ( UTF-8 enabled) but what if the user enters 50 japanese chars, does mysql accomodate it OR we have to consider some buffer during design ? -- Cathy www.nachofoto.com