Ticket #27 (closed Feature Request: wontfix)

Opened 19 months ago

Last modified 15 months ago

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

Changed 19 months ago by zombor

  • owner set to zombor
  • status changed from new to assigned

Changed 18 months ago by Shadowhand

  • component set to Kohana Framework

Further fixes in r196.

Changed 17 months ago by Shadowhand

  • status changed from assigned to closed
  • resolution set to fixed

Changed 17 months ago by Shadowhand

  • status changed from closed to reopened
  • resolution deleted

sqlite, mssql, and oci8 need to be implemented/tested.

Changed 15 months ago by Shadowhand

  • status changed from reopened to closed
  • version set to SVN HEAD
  • resolution set to wontfix
  • milestone changed from 1.1 (Development Stopped) to 2.0

Using PDO removes the db-specific drivers that kept this bug open.

Note: See TracTickets for help on using tickets.