Last active
December 18, 2015 10:59
Revisions
-
ocombe renamed this gist
Jun 20, 2013 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
ocombe renamed this gist
Jun 20, 2013 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
ocombe created this gist
Jun 13, 2013 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ public function findEncoding($str) { $tab = array("UTF-8", "ASCII", "ISO-8859-1"); foreach ($tab as $i) { foreach ($tab as $j) { $chain .= " [iconv('$i','$j','$str'): " . iconv($i, $j, "$str") . "] "; } } return $chain; }