Welcome Guest, Not a member yet? Register   Sign In
can not insert čćšđž
#1

[eluser]Mitja[/eluser]
I have problem with inserting or updating some characters (čćđšž). If i try to insert this characters nothing is inserted or updated. If i insert or update anything else then work.

Any idea why?
#2

[eluser]exodus7[/eluser]
What does your code look like?
#3

[eluser]Mitja[/eluser]
Code:
data_update = array(
                           'title' => $_POST['title'] ,
                           'slug' => $_POST['slug'] ,
                           'description' => $_POST['description'] ,
                           'is_shot' => $db_is_shot ,
                           'is_vip' => $db_is_vip ,
                           'is_extreme' => $db_is_extreme ,
                           'where_is' => $_POST['where_is'] ,
                           'when_start' => $_POST['when_start'] ,
                           'when_end' => $_POST['when_end'] ,
                           'price_eur' => $_POST['price_eur'] ,
                           'price_eur_simobil' => $_POST['price_eur_simobil'] ,
                           'departure_type' => $_POST['departure_type'] ,
                           'arrival_type' => $_POST['arrival_type'] ,
                           'duration_in_hour' => $_POST['duration_in_hour'] ,
                           'status_text' => $_POST['status_text'] ,
                           'price_includes' => $_POST['price_includes'] ,
                           'simobil_ringtone' => $_POST['simobil_ringtone'] ,
                           'simobil_wallpaper' => $_POST['simobil_wallpaper'] ,
                           'simobil_theme' => $_POST['simobil_theme'] ,
                           'programme' => $_POST['programme'] ,
                           'number_of' => $_POST['number_of']
                    );
            
                    $this->db->where('arrangement_id', $_POST['arrangement_id']);
                    $this->db->update('arrangement', $data_update);
#4

[eluser]Vlad0[/eluser]
do u use utf-8 or some other encoding?
i'm using utf-8 and database collation is utf8_general_ci and works perfectly...
#5

[eluser]exodus7[/eluser]
Your code looks correct to me --- I'm thinking like Vlad0 is.... It might have something to do with your database collations... I found another post which might be of some help http://ellislab.com/forums/viewthread/77128/




Theme © iAndrew 2016 - Forum software by © MyBB