Created
June 12, 2012 14:44
-
-
Save AV4TAr/2917947 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 characters
| <?php | |
| function file_get_contents_utf8($fn) { | |
| $content = file_get_contents($fn); | |
| return mb_convert_encoding($content, 'UTF-8', | |
| mb_detect_encoding($content, 'UTF-8, ISO-8859-1', true)); | |
| } | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment