Показать сообщение отдельно
Старый 07.09.2009, 18:44   #12
dmartynenko
Senior Member
 
Аватар для dmartynenko
 
Регистрация: 20.07.2007
Адрес: Беларусь, Минск
Сообщений: 957
Отправить сообщение для dmartynenko с помощью ICQ
По умолчанию

Цитата:
Сообщение от viod Посмотреть сообщение
А utf8_general_ci или utf8_unicode_ci ????
Сайт нужно делать на немецком и русском языках
Все что идет после utf8_ влияет только на порядок сортировки.
Для немецкого языка лучше подойдет utf8_unicode_ci.
Подробности есть здесь: http://forums.mysql.com/read.php?103...748#msg-188748

Цитата:
1. utf8_unicode_ci supports so called expansions and ligatures, for example:
German letter ß (U+00DF LETTER SHARP S) is sorted near "ss"
Letter Π(U+0152 LATIN CAPITAL LIGATURE OE) is sorted near "OE".

utf8_general_ci does not support expansions/ligatures, it sorts
all these letters as single characters, and sometimes in a wrong order.

2. utf8_unicode_ci is *generally* more accurate for all scripts.
For example, on Cyrillic block:
utf8_unicode_ci is fine for all these languages:
Russian, Bulgarian, Belarusian, Macedonian, Serbian, and Ukrainian.
While utf8_general_ci is fine only for Russian and Bulgarian subset of Cyrillic.
Extra letters used in Belarusian, Macedonian, Serbian, and Ukrainian
are sorted not well.
dmartynenko вне форума   Ответить с цитированием