Character issue in yiic shell

I tried to create a new record via yiic shell (on windows)




>>$city = new City;

>>$city->name = 'Köln';

>>$city->save();



the name of the city is now ‘K’

the character set of the database is utf-8.

anyone?

I guess is a problem of the windows shell.

I have experience that with russian characters on some windows computer the shell is simply unusable.

Problem is in the console character set… when you type "Köln"in the console… that is not UTF8… so your database does not get the UTF-8 code for the character "ö"

ok, forget yiic shell for my purpose, switched to migrations

thanks for replies