Reply to Re: use of varchar MySQL versus nvarchar MS SQL

Your name:

Reply:


Posted by J.O. Aho on 11/23/06 19:45

Pugi! wrote:
> A nvarchar is a varchar (only ascii) for unicode text on MS SQL-server.
> How do you use varchar on mysql for unicode ?
> If you use a varchar(100) will the maximum number of characters be
> independent of the characterset (latin, japanese, chinese, ...) or will
> a japanese or chinese characterset will not be able to store 100
> characters ?

Don't have any good answer for this, more than take a look at the mysql
documentation, http://dev.mysql.com/doc/refman/5.0/en/charset-unicode.html

For sure if you try to store utf-8 characters in an iso-8859-1 table, you will
waste up the space a lot faster for cjk text. If using utf-8/ucs-2, then one
character should logically take one space, no matter if it's one-byte
sequence, two-byte sequence or three-byte sequence.


alt.php.sql had IMHO been a lot better newsgroup to ask this question.


//Aho

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация