Encoding converter

By A^1^T^E^A^M on May 21, 2008

Usage function of encoding converter on text to any format.
Often its using to convert text from windows-1251 to utf-8

function convertText($string)
{
$utf = “UTF-8″;
$wincp =”CP1251″;
$text = iconv($utf,$wincp,$string);
return $text;
}

Comments

Sign in to comment.
Jonesy44   -  May 21, 2008

what is the difference between, windows-1251 and utf-8.

utf-8 is general webpage encoding no?

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.