I used the Gii CRUD Generator to create a CRUD implementation for a table (MySQL) of mine.
The database and tables are stored in UTF-8.
I’ve followed the directions at http://www.yiiframework.com/wiki/16/how-to-set-up-unicode/
When I load the page at ../index.php?r=chattype I get the following error.
Can someone help?
PHP Error
htmlspecialchars(): Invalid multibyte sequence in argument
X:\_ExcludeFromBackup\furball\yii\framework\web\helpers\CHtml.php(66)
54 */
55 public static $count=0;
56
57 /**
58 * Encodes special characters into HTML entities.
59 * The {@link CApplication::charset application charset} will be used for encoding.
60 * @param string $text data to be encoded
61 * @return string the encoded data
62 * @see http://www.php.net/manual/en/function.htmlspecialchars.php
63 */
64 public static function encode($text)
65 {
66 return htmlspecialchars($text,ENT_QUOTES,Yii::app()->charset);
67 }