Hi friends. I'm storing a few fields in MySQL as a bit(1) data type. I am storing either a 0 or 1 for true or false. When Yii retrieves the value… it's displaying as �
is the browser - yes … a black diamond with a ? mark in the middle of it.
Most likely you are setting a default language charset in your web server config. Usually you should leave it unset so the server will use the default.
EDIT: To clarify, the web browser doesn't understand the character it's supposed to display so it replaced it with the black diamond question mark.
Well it must have been something with the BIT datatype… maybe they behave differently in MySQL and SQL Server. I changed it to a TINYINT and it works just fine.