Форум больше не используется. Присоединяйтесь к каналу #community-ru в Slack for TYPO3 community |
28.04.2006, 03:31 | #1 |
Administrator
|
Проблемы с PHP5 и windows-1251 в TYPO3
TYPO3 юзает PHP-шный XML парсер
Если кодировка utf-8 - все с русским языком хорошо. Если windows-1251 - плохо совсем - кракозябры во всех флекс формах. // PHP5 fix of charset awareness: // Problem is: PHP5 apparently detects the charset of the XML file (or defaults to utf-8) and will AUTOMATICALLY convert the content to either utf-8, iso-8859-1 or us-ascii. PHP4 just passed the content through without taking action regarding the charset. // In TYPO3 we expect that the charset of XML content is NOT handled in the parser but internally in TYPO3 instead. Therefore it would be very nice if PHP5 could be configured to NOT process the charset of the files. But this is not possible for now. // What we do here fixes the problem but ONLY if the charset is utf-8, iso-8859-1 or us-ascii. That should work for most TYPO3 installations, in particular if people use utf-8 which we highly recommend. Возможно, это можно запатчить - но проще использовать PHP4. |