• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DB charset in CI 1.6.0

#11
[eluser]dik_[/eluser]
The code in my first post is an extract from the DB.php file, which I have modified to include the penultimate line shown, in order for UTF8 to work for me.

I don't manually initialize the DB myself, I have it done automatically in application/config/autoload.php:

Code:
$autoload['libraries'] = array('database', ...);

Did some more testing, and removed the db from the autoloading array, manually loading it in my controller's constructor, as you suggested. Still, I get garbage characters instead of readable text, and still the same queries are ran (nothing related to setting the char set that is)...


Messages In This Thread
DB charset in CI 1.6.0 - by El Forum - 02-01-2008, 07:32 PM
DB charset in CI 1.6.0 - by El Forum - 02-01-2008, 07:50 PM
DB charset in CI 1.6.0 - by El Forum - 02-01-2008, 08:42 PM
DB charset in CI 1.6.0 - by El Forum - 02-01-2008, 08:51 PM
DB charset in CI 1.6.0 - by El Forum - 02-01-2008, 09:20 PM
DB charset in CI 1.6.0 - by El Forum - 02-01-2008, 09:29 PM
DB charset in CI 1.6.0 - by El Forum - 02-01-2008, 10:41 PM
DB charset in CI 1.6.0 - by El Forum - 02-02-2008, 12:36 AM
DB charset in CI 1.6.0 - by El Forum - 02-02-2008, 09:15 PM
DB charset in CI 1.6.0 - by El Forum - 02-03-2008, 12:03 AM
DB charset in CI 1.6.0 - by El Forum - 02-03-2008, 12:24 AM
DB charset in CI 1.6.0 - by El Forum - 02-03-2008, 07:10 AM
DB charset in CI 1.6.0 - by El Forum - 02-11-2008, 04:31 PM
DB charset in CI 1.6.0 - by El Forum - 02-11-2008, 04:43 PM
DB charset in CI 1.6.0 - by El Forum - 02-11-2008, 05:49 PM
DB charset in CI 1.6.0 - by El Forum - 02-12-2008, 11:32 AM
DB charset in CI 1.6.0 - by El Forum - 02-12-2008, 12:20 PM
DB charset in CI 1.6.0 - by El Forum - 02-12-2008, 12:33 PM
DB charset in CI 1.6.0 - by El Forum - 02-12-2008, 05:49 PM
DB charset in CI 1.6.0 - by El Forum - 02-12-2008, 06:14 PM
DB charset in CI 1.6.0 - by El Forum - 02-12-2008, 08:55 PM
DB charset in CI 1.6.0 - by El Forum - 02-12-2008, 11:05 PM
DB charset in CI 1.6.0 - by El Forum - 02-12-2008, 11:18 PM
DB charset in CI 1.6.0 - by El Forum - 02-13-2008, 12:47 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.