Yii Framework Forum: Invalid multibyte sequence in argument - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Invalid multibyte sequence in argument Rate Topic: -----

#1 User is offline   Finn 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 04-July 10

Posted 04 July 2010 - 03:52 PM

Hi,

I am doing my first project with Yii (actually, I'm not too experienced with PHP either).

I have created some models and crud scaffolding from an existing database using yiic shell. The database is a MySQL database with character set utf8 and has Danish characters in it.

When I try to view the data listings in the browser, the tables without Danish characters work OK. But with the tables that contains Danish characters I get this PHP error: htmlspecialchars(): Invalid multibyte sequence in argument.

What am I doing wrong?
0

#2 User is offline   Finn 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 04-July 10

Posted 04 July 2010 - 04:17 PM

Found the problem myself :)

I had forgotten 'charset' => 'utf8' in main.php.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users