Note: this library is useful when you don’t have iconv module installed. If you have it use it, it is much safer and faster.
This a small library to convert UTF-8 strings to Windows-1256, I doesn’t need any external libraries, and it has one function utf8_to_win:
< ?
include "lib.utf2win.php";
header('Content-Type: text/html; charset=Windows-1256');
$str_win1256 = utf8_to_win($str_utf8);
?>


