CodeIgniter Forums

Full Version: Codeigniter error with chatset latin1 (Vbulletin)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]tinhphaistc[/eluser]
i using codeigniter make an project, it as follow. i want to connect to mysql of Vbulletin and show in my project, i save code with UTF-8 not DOM, it show ok but i see at Chrome and IE error HEAD haven't everything. but only TITLE in HEAD and everything after BODY. and have space in "" after BODY

i config database.php in codeigniter is.

Code:
$db['default']['char_set'] = 'latin1';//utf8
$db['default']['dbcollat'] = 'latin1_swedish_ci';//utf8_general_ci
i use latin1 because Vbulletin use it.

Html page

Code:
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="author" content="mr.sam" />
and i try to change chatset is (latin1 or utf-8). BUT IT NOT WORK Please help me THANKS ALL

El Forum

[eluser]tinhphaistc[/eluser]
help me please. BIG THANKS

El Forum

[eluser]tinhphaistc[/eluser]
more information.
i code <head> as follow
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
&lt;html&gt;
&lt;head&gt;
  &lt;meta http-equiv="content-type" content="text/html; charset=utf-8" /&gt;
  &lt;meta name="author" content="mr.sam" /&gt;
    &lt;link rel="stylesheet" type="text/css" href="/theme/vinadev.css" /&gt;
    &lt;link rel="stylesheet" type="text/css" href="/theme/jquery.tooltip.css" /&gt;
    [removed][removed]
    [removed][removed]
    [removed]
      $j = jQuery.noConflict();
      $j(document).ready(function(){
        $j("div.item").tooltip();
      });
    [removed]
    &lt;title&gt;Bình thuận 360&lt;/title&gt;
    
&lt;/head&gt;
but i check again in chorme is no true &lt;head&gt;. (You can see attach file). it show after &lt;body&gt; and &lt;body&gt; add space in "".

link image: http://s1063.photobucket.com/albums/t512...ent=01.png