Ticket #27 (closed Feature Request: wontfix)
DB charset option
| Reported by: | dik_ | Owned by: | zombor |
|---|---|---|---|
| Priority: | major | Milestone: | 2.0 |
| Component: | Core | Version: | SVN HEAD |
| Keywords: | charset,encoding | Cc: |
Description
It would be nice to have an option in application/config/database.php like:
$db['default']['charset'] = "utf8";
Then this would call an appropriate query, probably in database/DB.php towards the end (or some other more appropriate place):
$DB =& new $driver($params);
$DB->query("SET NAMES 'utf8'");
return $DB;
replacing utf8 with whatever was set. This way we won't have to change the CI core and forget to do so in an update, and we won't have to call SET NAMES in every constructor (or method).
Thanks
Change History
Note: See
TracTickets for help on using
tickets.
