MySQL Forums
Forum List  »  NDB clusters

Re: maximum row size
Posted by: Ole Villumsen
Date: June 29, 2006 04:48AM

Mikael wrote:

> You are using a character set utf8 that uses 3 bytes per character.
> Thus each
> varchar needs 768 bytes.
> 768 * 11 = 8448 > 8052

That explains a thing or two! Thanks! I always thought that the 8 in utf8 was how many bits it used, i.e., 1 byte per character.

For more information on character sets, issue the command

show character set;

in mysql. This confirms that UTF-8 takes 3 bytes. Also see chapter 10 in the reference manual (at least in the version 5.0 manual, it's chapter 10; it's at http://dev.mysql.com/doc/refman/5.0/en/charset.html).

*Our* next question will be how to find our way through 36 character sets and choose the right one for an application to be distributed internationally (Western and Arab world for now, not Far East at the moment). Input appreciated. We'll find an answer anyway. Immediately I'm thinking we'll adopt to utf8 or use ucs2; we may consider binary.

Yours, Ole

Options: Reply• Quote


Subject
Views
Written By
Posted
11440
July 07, 2005 10:17PM
4706
July 08, 2005 02:01PM
Re: maximum row size
4056
June 29, 2006 04:48AM
3643
March 29, 2006 03:31PM
3053
June 29, 2006 05:00AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.