Welcome Guest, Not a member yet? Register   Sign In
Arabic not displaying properly
#6

[eluser]shadowcaster[/eluser]
I reckon it's something to do with how the text is read in from the database using the db class. This is the query I'm running:

Code:
$this->db->from('quran')
         ->where('sura_num', $chapter_id);

foreach($this->db->get()->result() AS $row){
            $output .= '<div class="readresult">';
            $output .= '<span class="quransuranum">' . $row->sura_num . ':' . $row->aya_num . '</span> ';
            $output .= '<span class="quranverse">' . $row->aya . '</span></div>';
        }

I've tried outputting it directly through the controller and everything is UTF8 and the headers and even meta charset (HTML5) is UTF8 but I still have this problem. I think it's something in the db class. It's not the database content itself because I've written a standalone script and that displays the Arabic without any issues.


Messages In This Thread
Arabic not displaying properly - by El Forum - 07-21-2011, 06:52 AM
Arabic not displaying properly - by El Forum - 07-22-2011, 02:20 AM
Arabic not displaying properly - by El Forum - 07-22-2011, 05:21 AM
Arabic not displaying properly - by El Forum - 07-22-2011, 06:39 AM
Arabic not displaying properly - by El Forum - 07-22-2011, 08:29 AM
Arabic not displaying properly - by El Forum - 07-23-2011, 07:48 AM
Arabic not displaying properly - by El Forum - 07-23-2011, 11:11 AM
Arabic not displaying properly - by El Forum - 07-28-2011, 02:01 AM
Arabic not displaying properly - by El Forum - 07-28-2011, 03:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB