Hi,
I am trying to save some HTML data to my database.
Unfortunately my ckeditor creates HTML-entities, which is no problem itself, but when I try to show my record I get this error:
Description
htmlspecialchars() [<a href='function.htmlspecialchars'>function.htmlspecialchars</a>]: Invalid multibyte sequence in argument
#0 /var/www/lib/yii/web/helpers/CHtml.php(71): htmlspecialchars()
#1 /var/www/modules/pii/views/piiPage/show.php(20): encode()
#2 /var/www/lib/yii/web/CBaseController.php(119): require()
#3 /var/www/lib/yii/web/CBaseController.php(88): PiiPageController->renderInternal()
#4 /var/www/lib/yii/web/CController.php(706): PiiPageController->renderFile()
#5 /var/www/lib/yii/web/CController.php(645): PiiPageController->renderPartial()
#6 /var/www/modules/pii/controllers/PiiPageController.php(75): PiiPageController->render()
#7 /var/www/lib/yii/web/actions/CInlineAction.php(32): PiiPageController->actionShow()
#8 /var/www/lib/yii/web/CController.php(300): CInlineAction->run()
#9 /var/www/lib/yii/web/filters/CFilterChain.php(129): PiiPageController->runAction()
#10 /var/www/lib/yii/web/filters/CFilter.php(41): CFilterChain->run()
#11 /var/www/lib/yii/web/CController.php(957): CAccessControlFilter->filter()
#12 /var/www/lib/yii/web/filters/CInlineFilter.php(59): PiiPageController->filterAccessControl()
#13 /var/www/lib/yii/web/filters/CFilterChain.php(126): CInlineFilter->filter()
#14 /var/www/lib/yii/web/CController.php(283): CFilterChain->run()
#15 /var/www/lib/yii/web/CController.php(257): PiiPageController->runActionWithFilters()
#16 /var/www/lib/yii/web/CWebApplication.php(332): PiiPageController->run()
#17 /var/www/lib/yii/web/CWebApplication.php(120): CWebApplication->runController()
#18 /var/www/lib/yii/base/CApplication.php(135): CWebApplication->processRequest()
#19 /var/www/www/index.php(16): CWebApplication->run()
I found this related bug in PHP:
http://bugs.php.net/bug.php?id=47993
This error appears only in my production server with PHP Version 5.2.0-8+etch15.
While my DevBox (OS X, PHP 5.2.9) is running fine.
Any ideas other than not using HTML-entites in my editor?
Upgrading PHP on the Server?
Thanks in advance.
Best regards,
schmunk