Find Article
Saturday, May 21, 2011
Php Code: Encoding converter
Usage function of encoding converter on text to any format.
Often its using to convert text from windows-1251 to utf-8
<!-- This Script is from www.hawkee.com, found at www.phpfreecode.com-->function convertText($string){$utf = “UTF-8″;$wincp =â€CP1251″;$text = iconv($utf,$wincp,$string);return $text;}<br><font face="Tahoma"><a target="_blank" href="http://www.phpfreecode.com/"><span style="font-size: 8pt; text-decoration: none">PHP Free Code</span></a></font>
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment