Welcome Guest, Not a member yet? Register   Sign In
dispaly unicode character
#1

[eluser]Volkscom[/eluser]
hi,
I have to display malayam unicode character in browser.When I tried the usual way ,i.e.,include the following line in meta tag
<META http-equiv=content-type content="text/html; charset=UTF-8">
but it's not working!.
Then I coded like this in controller,the matter stored in data table in MYSQL database.
class controller_name extends Controller{
function disp_val(){
echo '<html>

<head>
<META http-equiv=content-type content="text/html; charset=UTF-8">
<title>ePAY KERALA - Utility Payments,Classifieds Advertisements</title>
</head>
<body>
<table>
<tr><th>Matter</th></tr>';
$query_val="SELECT * FROM mytable where pid >50";
$result_val =$this->db->query($query_val);
foreach($result_val->result() as $row){
echo "<tr><td>".$row->matter."</td></tr>";
}
echo"</table>
&lt;/body&gt;
&lt;/html&gt;";
}
}

This function shows like this:
വണ്ഡി േകടായി
need 2+yrs experienced php developer
്ുപേ് ുരര്ുപി ുുപേുിു ചചജഗകതേിൈജദജൌീലലോപകി രപരിുഗ
need a2+yrs experienced vb programmer
need 6+yr experienced sysytem administrator
hello to all

Can any one help me to display utf-8 character.
Thanks in advance!.......
#2

[eluser]Unknown[/eluser]
If you are using older versions of ODBC as database driver then , it wont support unicode characters




Theme © iAndrew 2016 - Forum software by © MyBB