Rayed's Real Life

FreeBSD, Linux, Apache, PHP, MySQL, and very little of my life ;)

PHP utf2win1256

leave a comment

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);
?>

Download

Written by Rayed

July 4th, 2005 at 12:43 pm

Posted in

Leave a Reply

Powered by WP Hashcash