On Tue, 2008-10-14 at 21:05 +0800, DULMANDAKH Sukhbaatar wrote: > chinese and some other complex or unicode characters takes more than > one byte to be stored. but as I know char(250) means 250 bytes or you > can store about 80 chinese chars if we assume 1 char takes 4 bytes. > then you need to change model, and manually alter table column.
This isn't usually correct. Almost all databases, once the table encoding is set correctly (e.g. to UTF-8) use the length of a varchar column (which is what Django uses, not char, but the same applies to the former) to indicate the number of characters, not the number of bytes. Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---