Welcome Guest, Not a member yet? Register   Sign In
CI 1.7.1 - Kludge to install - I had to hard-code 'utf8' into .\sytem\libraries\validation/php
#1

[eluser]John_Betong[/eluser]
 
I upgraded from CI 1.70 to CI 1.7.1 and this error appeared:
Code:
A PHP Error was encountered

Severity: Warning

Message: mb_internal_encoding() [function.mb-internal-encoding]: Unknown encoding ""

Filename: libraries/Validation.php

Line Number: 57
 
My Kludge in ./system/libraries/Validation.php
Code:
/**
     * Constructor
     *
     */    
    function CI_Validation()
    {    
        $this->CI =& get_instance();
        
        if (function_exists('mb_internal_encoding'))
        {
            // KLUDGE
            if (TRUE)
            {
                mb_internal_encoding('utf8');
            }else{
                mb_internal_encoding($this->CI->config->item('charset'));
            }    
        }
        
        log_message('debug', "Validation Class Initialized");
    }
 
I did notice that it is asking for a config variable which does not exist because it is declared here:
/config/database.php
Code:
$db['default']['charset']  = "UTF8";
 
Is this a bug?
 
 
#2

[eluser]jalalski[/eluser]
on my install I have (in application/config/config.php line 80)
$config['charset'] = "UTF-8";

maybe you didn't copy over the config files?
#3

[eluser]John_Betong[/eluser]
[quote author="jalalski" date="1234563702"]on my install I have (in application/config/config.php line 80)
$config['charset'] = "UTF-8";

maybe you didn't copy over the config files?[/quote]

 
I followed the help instructions to upgrade from CI 1.7.0 to CI 1.7.1 and the requirements were to just copy the system directory.

I have just checked in CI 1.7.0 config.php file and the $config['charset'] is set. It looks as though I did not upgrade my last version correctly.

Many thanks for your help.
 




Theme © iAndrew 2016 - Forum software by © MyBB