Help yii error or mine?

My host server is returning this error log

[03-Aug-2010 17:54:57] PHP Warning: htmlspecialchars() [<a href=‘function.htmlspecialchars’>function.htmlspecialchars</a>]: Invalid multibyte sequence in argument in /home/essencia/yii/framework/web/helpers/CHtml.php on line 66

[03-Aug-2010 17:54:57] PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0

[03-Aug-2010 17:56:03] PHP Warning: htmlspecialchars() [<a href=‘function.htmlspecialchars’>function.htmlspecialchars</a>]: Invalid multibyte sequence in argument in /home/essencia/yii/framework/web/helpers/CHtml.php on line 66

[03-Aug-2010 17:56:03] PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0

[03-Aug-2010 18:17:03] PHP Warning: htmlspecialchars() [<a href=‘function.htmlspecialchars’>function.htmlspecialchars</a>]: Invalid multibyte sequence in argument in /home/essencia/yii/framework/web/helpers/CHtml.php on line 66

[03-Aug-2010 18:17:03] PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0

[03-Aug-2010 18:17:56] PHP Warning: htmlspecialchars() [<a href=‘function.htmlspecialchars’>function.htmlspecialchars</a>]: Invalid multibyte sequence in argument in /home/essencia/yii/framework/web/helpers/CHtml.php on line 66

[03-Aug-2010 18:17:56] PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0

[03-Aug-2010 18:50:42] PHP Warning: htmlspecialchars() [<a href=‘function.htmlspecialchars’>function.htmlspecialchars</a>]: Invalid multibyte sequence in argument in /home/essencia/yii/framework/web/helpers/CHtml.php on line 66

[03-Aug-2010 18:50:42] PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0

[03-Aug-2010 20:48:50] PHP Warning: htmlspecialchars() [<a href=‘function.htmlspecialchars’>function.htmlspecialchars</a>]: Invalid multibyte sequence in argument in /home/essencia/yii/framework/web/helpers/CHtml.php on line 66

[03-Aug-2010 20:48:50] PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0

[03-Aug-2010 20:50:49] PHP Warning: htmlspecialchars() [<a href=‘function.htmlspecialchars’>function.htmlspecialchars</a>]: Invalid multibyte sequence in argument in /home/essencia/yii/framework/web/helpers/CHtml.php on line 66

[03-Aug-2010 20:50:49] PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0

[03-Aug-2010 21:14:07] PHP Warning: htmlspecialchars() [<a href=‘function.htmlspecialchars’>function.htmlspecialchars</a>]: Invalid multibyte sequence in argument in /home/essencia/yii/framework/web/helpers/CHtml.php on line 66

[03-Aug-2010 21:14:07] PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0

[03-Aug-2010 21:18:44] PHP Warning: htmlspecialchars() [<a href=‘function.htmlspecialchars’>function.htmlspecialchars</a>]: Invalid multibyte sequence in argument in /home/essencia/yii/framework/web/helpers/CHtml.php on line 66

[03-Aug-2010 21:18:44] PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0

[03-Aug-2010 21:18:53] PHP Warning: htmlspecialchars() [<a href=‘function.htmlspecialchars’>function.htmlspecialchars</a>]: Invalid multibyte sequence in argument in /home/essencia/yii/framework/web/helpers/CHtml.php on line 66

[03-Aug-2010 21:18:53] PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0

[03-Aug-2010 21:18:54] PHP Warning: htmlspecialchars() [<a href=‘function.htmlspecialchars’>function.htmlspecialchars</a>]: Invalid multibyte sequence in argument in /home/essencia/yii/framework/web/helpers/CHtml.php on line 66

[03-Aug-2010 21:18:54] PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0

[03-Aug-2010 21:18:55] PHP Warning: htmlspecialchars() [<a href=‘function.htmlspecialchars’>function.htmlspecialchars</a>]: Invalid multibyte sequence in argument in /home/essencia/yii/framework/web/helpers/CHtml.php on line 66

[03-Aug-2010 21:18:55] PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0

[03-Aug-2010 21:18:55] PHP Warning: htmlspecialchars() [<a href=‘function.htmlspecialchars’>function.htmlspecialchars</a>]: Invalid multibyte sequence in argument in /home/essencia/yii/framework/web/helpers/CHtml.php on line 66

[03-Aug-2010 21:18:55] PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0

[03-Aug-2010 21:18:57] PHP Warning: htmlspecialchars() [<a href=‘function.htmlspecialchars’>function.htmlspecialchars</a>]: Invalid multibyte sequence in argument in /home/essencia/yii/framework/web/helpers/CHtml.php on line 66

[03-Aug-2010 21:18:57] PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0

[03-Aug-2010 21:18:57] PHP Warning: htmlspecialchars() [<a href=‘function.htmlspecialchars’>function.htmlspecialchars</a>]: Invalid multibyte sequence in argument in /home/essencia/yii/framework/web/helpers/CHtml.php on line 66

[03-Aug-2010 21:18:57] PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0

[04-Aug-2010 17:01:56] PHP Parse error: syntax error, unexpected T_PUBLIC in /home/essencia/public_html/protected/synth/controllers/GalleriesController.php on line 93

[04-Aug-2010 17:02:00] PHP Parse error: syntax error, unexpected T_PUBLIC in /home/essencia/public_html/protected/synth/controllers/GalleriesController.php on line 93

[04-Aug-2010 17:02:01] PHP Parse error: syntax error, unexpected T_PUBLIC in /home/essencia/public_html/protected/synth/controllers/GalleriesController.php on line 93

and one page of my application is returning

PHP Error

Description

htmlspecialchars() [<a href=‘function.htmlspecialchars’>function.htmlspecialchars</a>]: Invalid multibyte sequence in argument

Source File

/home/essencia/yii/framework/web/helpers/CHtml.php(66)

00054: */

00055: public static $count=0;

00056:

00057: /**

00058: * Encodes special characters into HTML entities.

00059: * The {@link CApplication::charset application charset} will be used for encoding.

00060: * @param string data to be encoded

00061: * @return string the encoded data

00062: * @see http://www.php.net/manual/en/function.htmlspecialchars.php

00063: */

00064: public static function encode($text)

00065: {

00066: return htmlspecialchars($text,ENT_QUOTES,Yii::app()->charset);

00067: }

00068:

00069: /**

00070: * Encodes special characters in an array of strings into HTML entities.

00071: * Both the array keys and values will be encoded if needed.

00072: * If a value is an array, this method will also encode it recursively.

00073: * The {@link CApplication::charset application charset} will be used for encoding.

00074: * @param array data to be encoded

00075: * @return array the encoded data

00076: * @see http://www.php.net/manual/en/function.htmlspecialchars.php

00077: * @since 1.0.4

00078: */

Stack Trace

#0 /home/essencia/yii/framework/web/helpers/CHtml.php(66): htmlspecialchars()

#1 /home/essencia/yii/framework/web/helpers/CHtml.php(603): encode()

#2 /home/essencia/public_html/protected/synth/views/tools/forms/_errorreport.php(9): textArea()

#3 /home/essencia/yii/framework/web/CBaseController.php(119): require()

#4 /home/essencia/yii/framework/web/CBaseController.php(88): ToolsController->renderInternal()

#5 /home/essencia/yii/framework/web/CController.php(798): ToolsController->renderFile()

#6 /home/essencia/public_html/protected/synth/views/tools/errorreport.php(15): ToolsController->renderPartial()

#7 /home/essencia/yii/framework/web/CBaseController.php(119): require()

#8 /home/essencia/yii/framework/web/CBaseController.php(88): ToolsController->renderInternal()

#9 /home/essencia/yii/framework/web/CController.php(798): ToolsController->renderFile()

#10 /home/essencia/yii/framework/web/CController.php(739): ToolsController->renderPartial()

#11 /home/essencia/public_html/protected/synth/controllers/ToolsController.php(43): ToolsController->render()

#12 /home/essencia/yii/framework/web/actions/CInlineAction.php(32): ToolsController->actionErrorReport()

#13 /home/essencia/yii/framework/web/CController.php(300): CInlineAction->run()

#14 /home/essencia/yii/framework/web/filters/CFilterChain.php(129): ToolsController->runAction()

#15 /home/essencia/yii/framework/web/filters/CFilter.php(41): CFilterChain->run()

#16 /home/essencia/yii/framework/web/CController.php(1049): CAccessControlFilter->filter()

#17 /home/essencia/yii/framework/web/filters/CInlineFilter.php(59): ToolsController->filterAccessControl()

#18 /home/essencia/yii/framework/web/filters/CFilterChain.php(126): CInlineFilter->filter()

#19 /home/essencia/yii/framework/web/CController.php(283): CFilterChain->run()

#20 /home/essencia/yii/framework/web/CController.php(257): ToolsController->runActionWithFilters()

#21 /home/essencia/yii/framework/web/CWebApplication.php(324): ToolsController->run()

#22 /home/essencia/yii/framework/web/CWebApplication.php(121): CWebApplication->runController()

#23 /home/essencia/yii/framework/base/CApplication.php(135): CWebApplication->processRequest()

#24 /home/essencia/public_html/protected/synth/components/SWebApplicationEndBehavior.php(18): CWebApplication->run()

#25 unknown(0): SWebApplicationEndBehavior->runEnd()

#26 /home/essencia/yii/framework/base/CComponent.php(261): call_user_func_array()

#27 /home/essencia/public_html/admin.php(12): CWebApplication->__call()

#28 /home/essencia/public_html/admin.php(12): CWebApplication->runEnd()

2010-08-04 17:12:20 Apache Yii Framework/1.1.3

Some script work on localhost but when i publish they stop working… Some one can help me?

Looks like a mixup of different encodings in your files. Check again for UTF-8 without BOM. Here someone reports, this warning came up when he copy&paste from MS Word to a database:

http://old.nabble.com/htmlentities-charset-bug-td15028524.html