[Koha] UTF 8 encoding

nitesh rijal rijal.it at gmail.com
Wed Nov 4 18:41:57 NZDT 2009


 actually this is what  i got when i used UTF8_decode function of PHP

CODE:
<?php
    $conn = mysql_connect('localhost','root','healthnet') or die('Could not
connect to database');
    $db = mysql_select_db('koha',$conn) or die('Could not select database');
    $query = mysql_query("SELECT author FROM biblio") or die('Could not
execute query');
    $row = mysql_fetch_array($query);
    echo '<pre>'.$row['author'].'</pre>';
    echo '<pre>'.utf8_decode($row['author']).'</pre>';
?>

Result:

"कारॠकी, यॠवराज सिंह"

"�?ार्�?�?, युवरा�? सि�?ह"



-- 
Nitesh Rijal
BE IT
http://niteshrijal.com.np
+9779841458173
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.katipo.co.nz/pipermail/koha/attachments/20091103/f7ecc2a0/attachment.htm 


More information about the Koha mailing list