V
V
Vasyl Vandych2020-06-17 18:42:11
CodeIgniter
Vasyl Vandych, 2020-06-17 18:42:11

Codeigniter url in Cyrillic like ������ how to fix it?

There is a project on codeigniter, there is a piece of code that pulls the name of the object from the base and generates a link, but if the name is in Cyrillic, it displays ����� .

Help fix it.
I bring a piece of code.

function get_listing_url($listing_id = ""){
    $CI =&  get_instance();
    $CI->load->database();
    $listing = $CI->db->get_where('listing', array('id' => $listing_id))->row_array();
    $custom_url = site_url($listing['listing_type'].'/'.slugify($listing['name']).'/'.$listing_id);
    return $custom_url;

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question