• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
dispaly unicode character

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>

<META http-equiv=content-type content="text/html; charset=UTF-8">
<title>ePAY KERALA - Utility Payments,Classifieds Advertisements</title>
$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>";

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!.......

If you are using older versions of ODBC as database driver then , it wont support unicode characters

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.