Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. <?php
  2. session_start();
  3. $conn=oci_connect('localhost','pass','IP....');
  4. $stid=oci_parse($conn,"select arabic_name from arabic_names_table");
  5. oci_execute($stid);
  6. if($row-oci_fetch_array($stid,OCI_ASSOC+OCI_RETURNS_NULLS))
  7. {
  8. $name_ar=$row['arabic_name'];
  9. }
  10. ?>
  11.  
  12. $win1256 = iconv('windows-1256', 'utf-8', $my_string); //$my_string -> windows-1256
  13. echo $win1256; // Results the utf-8 format .
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement